gerardog/gsudo

Issue: Using JPSoft TCC, for some reason trys to delete C:\*??

dmagician038 opened this issue · 1 comments

Issue Description

While using JPSoft TCC28, when calling "gsudo -s --copyev" the app tries to execute "delete C:\*"
The actual command is like ' del / q "C:\WINDOWS\TEMP\gsudo\ed512b68-bd1c-449f-b312-e91f48f7512f.bat" '
Please note the extra spaces on ' ** del /<space> q "C:\WINDOWS\TEMP\gsudo\... ..." ' _

Steps to Reproduce

  1. TCC28 (no special options),
  2. Execute "gsudo -s --copyev"
  3. during execution, Asking to delete "C:*"

Screenshots

During execution:
image

This one pops right after previous image (current user is local admin but the command is running as regular user not run as Administrator...)
image

Together with this one
image

Context:

  • Windows version: Windows 10, 22H2, 19045.2254
  • gsudo version: v2.0.1

There was a big typo here:

preCommands.Add($"del / q {tempBatName}");

Fixed in v2.0.2