openbsd-ports/security/ipguard/patches/patch-ipguard_c

12 lines
468 B
Plaintext
Raw Normal View History

$OpenBSD: patch-ipguard_c,v 1.2 2008/12/05 22:07:07 sthen Exp $
--- ipguard.c.orig Mon Nov 24 18:46:11 2008
+++ ipguard.c Fri Nov 28 13:42:13 2008
@@ -72,6 +72,7 @@ int main(int argc, char *argv[]) {
srand((unsigned int) getpid());
iface[0] = fmac[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;