diff options
author | Christian Hesse <mail@eworm.de> | 2017-10-20 08:31:48 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2017-10-20 08:31:48 +0200 |
commit | 8b747acc27922a790f740c7e25ffa23939c35c91 (patch) | |
tree | 1c2147c39bf3fca5786cb4801bbdea57663265e8 /pacredir.c | |
parent | 29fe863ea50740a191e8ccd9ddabcf4ea5199ac6 (diff) | |
download | pacredir-8b747acc27922a790f740c7e25ffa23939c35c91.tar.gz pacredir-8b747acc27922a790f740c7e25ffa23939c35c91.tar.zst |
allow to specify uid and gid in config.h
Diffstat (limited to 'pacredir.c')
-rw-r--r-- | pacredir.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"); } |