summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/pm-action5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pm-action b/src/pm-action
index d917f42..347b655 100755
--- a/src/pm-action
+++ b/src/pm-action
@@ -25,6 +25,11 @@
# The rule here? Simplicity.
+if [ -n "$EUID" -a "$EUID" != "0" ]; then
+ echo This utility may only be run by the root user. 1>&2
+ exit 1
+fi
+
export LC_COLLATE=C
. /etc/pm/functions