aboutsummaryrefslogtreecommitdiff
path: root/src/userprivs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/userprivs.c')
-rw-r--r--src/userprivs.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/userprivs.c b/src/userprivs.c
index 399e229..ba7494f 100644
--- a/src/userprivs.c
+++ b/src/userprivs.c
@@ -89,12 +89,6 @@ switch_to_privs (uid_t uid, gid_t gid, gl_list_t retain_groups)
gid_t *emptygidset;
size_t size = 1, j = 1;
- if (uid == 0)
- {
- logmsg (LOG_ERR, _("refusing to run as root"));
- return 1;
- }
-
/* Create a list of supplementary groups */
size = 1 + (retain_groups ? gl_list_size (retain_groups) : 0);
emptygidset = xcalloc (size, sizeof emptygidset[0]);

Return to:

Send suggestions and report system problems to the System administrator.