Skip to content

FUSLOGVW.exe corrupts custom directory name when run with sudo inline #128

@nzbart

Description

@nzbart

Sudo for Windows version

1.0.1

Windows build number

10.0.26100.0

Other Software

Assembly Binding Log Viewer 4.0.30319.0

Steps to reproduce

  1. Configure inline sudo.

  2. Run sudo FUSLOGVW.exe

  3. Click on Settings.

  4. Enable custom log path.

  5. Enter a valid existing directory.

  6. An error will pop up: Custom log path must not be relative. And it must be an existing directory. Please reset custom log path.

  7. Inspect the Windows API call using Process Monitor from Sysinternals and see that the path name has been corrupted:

    Image
  8. Run FUSLOGVW.exe from an elevated PowerShell prompt (which can be elevated using sudo or by starting the process elevated from the Start menu), and confirm that this bug is not present.

Another developer has also reproduced this issue on a separate PC.

Expected Behavior

Running Assembly Binding Log Viewer under sudo inline will behave the same as when elevated via other means.

Actual Behavior

I'm unable to set a custom log directory because the log path is corrupted when calling the Windows CreateFile API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugSomething isn't workingNeeds-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions