diff options
-rw-r--r-- | tests/test-lib.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test-lib.sh b/tests/test-lib.sh index d99e3a966..60e92d3c6 100644 --- a/tests/test-lib.sh +++ b/tests/test-lib.sh @@ -124,7 +124,8 @@ uid_is_privileged_() get_process_status_() { - sed -n '/^State:[ ]*\([[:alpha:]]\).*/s//\1/p' /proc/$1/status + local pid=$1 + sed -n '/^State:[ ]*\([[:alpha:]]\).*/s//\1/p' /proc/$pid/status } # Convert an ls-style permission string, like drwxr----x and -rw-r-x-wx |