Issue: Wrong SID when using cached token
Starmania opened this issue · 1 comments
Starmania commented
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
Potential place to look at
gsudo/src/gsudo/Commands/RunCommand.cs
Lines 116 to 121 in 49446f9
Context:
- Windows version:
- Win10 21H2 - French
- gsudo version:
- v2.4.0 (5cb9968)
gerardog commented
I've released a fix in v2.4.2. Please give it a try. Thank you for reporting.