gerardog / gsudo

Sudo for Windows
https://gerardog.github.io/gsudo
MIT License
5.21k stars 139 forks source link

Issue: Wrong SID when using cached token #321

Closed Starmania closed 9 months ago

Starmania commented 9 months ago

Issue Description

When you cached a token (e.g. the one of system) and you gsudo an another time, arguments like --ti, -u, none won't be respected and you still run as system.

Steps to Reproduce

gsudo config CacheMode Auto
gsudo "cmd /c whoami"
gsudo -s "cmd /c whoami"

Screenshots

image

Potential place to look at

Context:

gerardog commented 9 months ago

I've released a fix in v2.4.2. Please give it a try. Thank you for reporting.