summaryrefslogtreecommitdiffstats
path: root/usr.sbin/authpf
diff options
context:
space:
mode:
authorbeck <beck@openbsd.org>2007-02-22 21:54:23 +0000
committerbeck <beck@openbsd.org>2007-02-22 21:54:23 +0000
commitf1e90e6e0870809cc36515bbe5804222ccebe632 (patch)
treeef9d2d15c019853b4de027e17f2b5588b1e96fe5 /usr.sbin/authpf
parentavoid undefined. closes pr5386. (diff)
downloadwireguard-openbsd-f1e90e6e0870809cc36515bbe5804222ccebe632.tar.xz
wireguard-openbsd-f1e90e6e0870809cc36515bbe5804222ccebe632.zip
this ftruncate is really not needed now, if we're just unlinking.
ok millert@
Diffstat (limited to 'usr.sbin/authpf')
-rw-r--r--usr.sbin/authpf/authpf.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.sbin/authpf/authpf.c b/usr.sbin/authpf/authpf.c
index a7a0e4bf7ca..e73f026b201 100644
--- a/usr.sbin/authpf/authpf.c
+++ b/usr.sbin/authpf/authpf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: authpf.c,v 1.100 2007/02/22 21:15:41 beck Exp $ */
+/* $OpenBSD: authpf.c,v 1.101 2007/02/22 21:54:23 beck Exp $ */
/*
* Copyright (C) 1998 - 2002 Bob Beck (beck@openbsd.org).
@@ -834,8 +834,6 @@ do_death(int active)
authpf_kill_states();
remove_stale_rulesets();
}
- if (pidfp != NULL)
- ftruncate(fileno(pidfp), 0);
if (pidfile[0] && (pidfp != NULL))
if (unlink(pidfile) == -1)
syslog(LOG_ERR, "cannot unlink %s (%m)", pidfile);