c4dabce681
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.
12 lines
494 B
Plaintext
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;
|