git.annexia.org
/
virt-what.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Retire private id executables
[virt-what.git]
/
virt-what.in
diff --git
a/virt-what.in
b/virt-what.in
index
d62f7c8
..
cc5c93c
100644
(file)
--- a/
virt-what.in
+++ b/
virt-what.in
@@
-75,8
+75,7
@@
PATH=$root@libexecdir@:$root/sbin:$root/usr/sbin:$PATH
# Check we're running as root.
-uid=`id -u`
-if [ "$uid" != 0 ]; then
+if [ "x$root" = "x" ] && [ "$EUID" -ne 0 ]; then
fail "this script must be run as root"
fi