12ecf96b34
Based on a submission from Florian Gross with several fixes and tweaks. ok sthen@
13 lines
458 B
Plaintext
13 lines
458 B
Plaintext
$OpenBSD: patch-src_libs_zbxnix_daemon_c,v 1.4 2010/08/22 14:43:24 ajacoutot Exp $
|
|
--- src/libs/zbxnix/daemon.c.orig Thu Aug 19 16:43:41 2010
|
|
+++ src/libs/zbxnix/daemon.c Thu Aug 19 16:44:01 2010
|
|
@@ -138,7 +138,7 @@ int daemon_start(int allow_root)
|
|
pid_t pid;
|
|
struct passwd *pwd;
|
|
struct sigaction phan;
|
|
- char user[7] = "zabbix";
|
|
+ char user[8] = "_zabbix";
|
|
|
|
/* running as root ?*/
|
|
if((0 == allow_root) && (0 == getuid() || 0 == getgid()))
|