Skip to content

Commit

Permalink
remove uid 0 from --mount-master check
Browse files Browse the repository at this point in the history
  • Loading branch information
hg42 committed Nov 28, 2023
1 parent a73c1e7 commit 77771f5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ class ShellHandler {
get() {
// only return true if command does not choke on the option and exits with code 0
val ok = runCatching {
ShellUtils.fastCmdResult("echo true | su --mount-master 0")
ShellUtils.fastCmdResult("echo true | su --mount-master")
}.getOrNull() ?: false
//traceDebug { "detected mount master option = $ok" }
return ok
Expand Down

0 comments on commit 77771f5

Please sign in to comment.