openbsd-ports/net/zabbix/patches/patch-src_libs_zbxnix_daemon_c

13 lines
458 B
Plaintext
Raw Normal View History

$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)
pid_t pid;
struct passwd *pwd;
struct sigaction phan;
- char user[7] = "zabbix";
2009-04-26 16:56:50 -04:00
+ char user[8] = "_zabbix";
/* running as root ?*/
if((0 == allow_root) && (0 == getuid() || 0 == getgid()))