summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2007-02-22 21:54:24 +0000
committerBob Beck <beck@cvs.openbsd.org>2007-02-22 21:54:24 +0000
commit2e075de6f9d2d1d5d8fcdadfe77531bab8f30ed3 (patch)
treebd22637ff0dd7d9dde0428e34b375929bd8b7ee6 /usr.sbin
parent2c4ce6e834894a2a5c7589e1ceaafc28a482b597 (diff)
this ftruncate is really not needed now, if we're just unlinking.
ok millert@
Diffstat (limited to 'usr.sbin')
-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);