2012-03-20 08:00:37 -04:00
|
|
|
$OpenBSD: patch-src_libs_zbxnix_daemon_c,v 1.8 2012/03/20 12:00:37 robert Exp $
|
|
|
|
--- src/libs/zbxnix/daemon.c.orig Tue Mar 20 10:15:16 2012
|
|
|
|
+++ src/libs/zbxnix/daemon.c Tue Mar 20 12:21:24 2012
|
|
|
|
@@ -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
|
|
|
|
2011-08-21 05:21:02 -04:00
|
|
|
/* running as root ? */
|
|
|
|
if (0 == allow_root && (0 == getuid() || 0 == getgid()))
|