Author: Ingvar Hagelund <ingvar@redpill-linpro.com>
Date: Wed Nov 27 02:14:36 CET 2019
Revert parts of upstream commit 55b2f623b2a9cde3831b45920e1a657fa1ffe3a4
--- src/hitch.c.orig 2019-11-27 01:15:30.734391214 +0100
+++ src/hitch.c 2019-11-27 01:15:10.901000746 +0100
@@ -3993,8 +3993,10 @@
exit(1);
}
- if (!verify_privileges())
- exit(1);
+ if (geteuid() == 0 && CONFIG->UID < 0) {
+ ERR("{core} ERROR: Refusing to run workers as root.\n");
+ exit(1);
+ }
if (CONFIG->DAEMONIZE)
daemonize();