maint: revert last change: we're not ready for "local" in scripts, yet

Revert "use a local var: more readable"
This reverts commit c0d8245288.
This commit is contained in:
Jim Meyering committed 2009-06-15 19:37:42 +02:00
1 parent c0d8245288
commit f51a401bc2
1 file changed
+1 -2
+1 -2
View File
@@ -124,8 +124,7 @@ uid_is_privileged_()
get_process_status_()
{
local pid=$1
sed -n '/^State:[ ]*\([[:alpha:]]\).*/s//\1/p' /proc/$pid/status
sed -n '/^State:[ ]*\([[:alpha:]]\).*/s//\1/p' /proc/$1/status
}
# Convert an ls-style permission string, like drwxr----x and -rw-r-x-wx