openbsd-ports/net/zabbix/patches/patch-src_libs_zbxnix_daemon_c
2012-10-10 22:04:57 +00:00

13 lines
456 B
Plaintext

$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
@@ -194,7 +194,7 @@ int daemon_start(int allow_root)
pid_t pid;
struct passwd *pwd;
struct sigaction phan;
- char user[7] = "zabbix";
+ char user[8] = "_zabbix";
if (0 == allow_root && (0 == getuid() || 0 == getgid())) /* running as root? */
{