openbsd-ports/security/ipguard/patches/patch-ipguard_c
ajacoutot c4dabce681 Update to ipguard-1.04.
rc script not included from the original diff because ipguard needs to
be teached to return the proper code when failing to start.

maintainer timeout
from Gonzalo L. R.
2012-03-30 07:24:45 +00:00

12 lines
494 B
Plaintext

$OpenBSD: patch-ipguard_c,v 1.3 2012/03/30 07:24:45 ajacoutot Exp $
--- ipguard.c.orig Mon Jul 12 00:46:36 2010
+++ ipguard.c Thu Mar 22 11:36:33 2012
@@ -75,6 +75,7 @@ int main(int argc, char *argv[]) {
srand((unsigned int) getpid());
iface[0] = fmac[0] = pfmac[0] = pcapf[0] = log_name[0] = pid_name[0] = suser[0] = '\0';
+ strlcpy(suser, "_ipguard", MAXLOGNAME);
strncpy(ethers_name, ETHERSFILE, PATH_MAX);
strncpy(fmac, FAKEMAC, 18);
ethers_update = ETHERSTO;