2011-04-25 03:42:36 -04:00
|
|
|
$OpenBSD: patch-src_libs_zbxnix_daemon_c,v 1.6 2011/04/25 07:42:36 ajacoutot Exp $
|
|
|
|
--- src/libs/zbxnix/daemon.c.orig Fri Apr 15 21:17:29 2011
|
|
|
|
+++ src/libs/zbxnix/daemon.c Mon Apr 25 08:17:22 2011
|
|
|
|
@@ -147,7 +147,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
|
|
|
|
|
|
|
/* running as root ?*/
|
|
|
|
if((0 == allow_root) && (0 == getuid() || 0 == getgid()))
|