projects
/
grml-scripts.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
grml-chroot: use shell of target's root user
[grml-scripts.git]
/
usr_sbin
/
blacklist
diff --git
a/usr_sbin/blacklist
b/usr_sbin/blacklist
index
ff1189a
..
ff9f2d0
100755
(executable)
--- a/
usr_sbin/blacklist
+++ b/
usr_sbin/blacklist
@@
-16,7
+16,7
@@
if [ -z "$1" ] ; then
exit 1
fi
exit 1
fi
-if [
$UID != 0
] ; then
+if [
"$(id -ru)" != "0"
] ; then
echo Error: become root before starting $0 >& 2
exit 100
fi
echo Error: become root before starting $0 >& 2
exit 100
fi