Skip to content

Commit

Permalink
drgn.internal.sudohelper: include filename in sudo prompt
Browse files Browse the repository at this point in the history
It'll probably be helpful to users to know why drgn is asking for sudo
permissions.

Signed-off-by: Omar Sandoval <osandov@osandov.com>
  • Loading branch information
osandov committed Sep 11, 2023
1 parent 1314d91 commit b730264
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drgn/internal/sudohelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ def open_via_sudo(
subprocess.check_call(
[
"sudo",
"-p",
f"[sudo] password for %p to open {path}: ",
sys.executable,
"-B",
__file__,
Expand Down

0 comments on commit b730264

Please sign in to comment.