summaryrefslogtreecommitdiff
path: root/nscd/nscd.c
diff options
context:
space:
mode:
Diffstat (limited to 'nscd/nscd.c')
-rw-r--r--nscd/nscd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nscd/nscd.c b/nscd/nscd.c
index af5ce42be8..8c61406d2f 100644
--- a/nscd/nscd.c
+++ b/nscd/nscd.c
@@ -205,6 +205,8 @@ parse_opt (int key, char *arg, struct argp_state *state)
}
case 'g':
+ if (getuid () != 0)
+ error (EXIT_FAILURE, 0, _("Only root is allowed to use this option!"));
receive_print_stats ();
/* Does not return. */