|
|
@ -1,17 +0,0 @@ |
|
|
|
--- a/src/libs/zbxnix/daemon.c
|
|
|
|
+++ b/src/libs/zbxnix/daemon.c
|
|
|
|
@@ -300,11 +300,14 @@ int daemon_start(int allow_root, const c
|
|
|
|
|
|
|
|
if (0 == allow_root && 0 == getuid()) /* running as root? */ |
|
|
|
{ |
|
|
|
+#if 0
|
|
|
|
+/* allow changing user and foreground */
|
|
|
|
if (0 != (flags & ZBX_TASK_FLAG_FOREGROUND)) |
|
|
|
{ |
|
|
|
zbx_error("cannot run as root!"); |
|
|
|
exit(EXIT_FAILURE); |
|
|
|
} |
|
|
|
+#endif
|
|
|
|
|
|
|
|
if (NULL == user) |
|
|
|
user = "zabbix"; |