From 2e075de6f9d2d1d5d8fcdadfe77531bab8f30ed3 Mon Sep 17 00:00:00 2001 From: Bob Beck Date: Thu, 22 Feb 2007 21:54:24 +0000 Subject: this ftruncate is really not needed now, if we're just unlinking. ok millert@ --- usr.sbin/authpf/authpf.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'usr.sbin') 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); -- cgit v1.2.3