summaryrefslogtreecommitdiffstats
path: root/pacredir.c
diff options
context:
space:
mode:
Diffstat (limited to 'pacredir.c')
-rw-r--r--pacredir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pacredir.c b/pacredir.c
index e2a4b1c..0b034a8 100644
--- a/pacredir.c
+++ b/pacredir.c
@@ -666,7 +666,7 @@ int main(int argc, char ** argv) {
/* process is running as root, drop privileges */
if (verbose > 0)
write_log(stdout, "Running as root, meh! Dropping privileges.\n");
- if (setgid(65534) != 0 || setuid(65534) != 0)
+ if (setgid(DROP_PRIV_GID) != 0 || setuid(DROP_PRIV_UID) != 0)
write_log(stderr, "Unable to drop user privileges!\n");
}