2012-10-10 18:04:57 -04:00
|
|
|
$OpenBSD: patch-src_libs_zbxnix_daemon_c,v 1.9 2012/10/10 22:04:57 robert Exp $
|
|
|
|
--- src/libs/zbxnix/daemon.c.orig Tue Jul 31 11:16:46 2012
|
|
|
|
+++ src/libs/zbxnix/daemon.c Tue Oct 2 21:08:50 2012
|
2012-03-20 08:00:37 -04:00
|
|
|
@@ -194,7 +194,7 @@ int daemon_start(int allow_root)
|
2010-01-11 13:30:01 -05:00
|
|
|
pid_t pid;
|
2009-04-23 11:38:11 -04:00
|
|
|
struct passwd *pwd;
|
|
|
|
struct sigaction phan;
|
|
|
|
- char user[7] = "zabbix";
|
2009-04-26 16:56:50 -04:00
|
|
|
+ char user[8] = "_zabbix";
|
2009-04-23 11:38:11 -04:00
|
|
|
|
2012-10-10 18:04:57 -04:00
|
|
|
if (0 == allow_root && (0 == getuid() || 0 == getgid())) /* running as root? */
|
|
|
|
{
|