Re: newsyslog problems with -C

From: Garance A Drosihn <drosih_at_rpi.edu>
Date: Sat, 2 Aug 2003 19:14:17 -0400
At 2:38 AM +0200 8/2/03, Riccardo Torrini wrote:
>
>Looking into sources I found two close(fd).
>Here is the patch:
>
>-----8<-----[ patch ]-----8<-----
># diff -u newsyslog.c.orig newsyslog.c
>--- newsyslog.c.orig    Sun May 25 18:46:13 2003
>+++ newsyslog.c Sat Aug  2 02:28:50 2003
>_at__at_ -1764,7 +1764,6 _at__at_
>			failed = fchown(fd, ent->uid, ent->gid);
>			if (failed)
>				err(1, "can't fchown temp file %s", tempfile);
>-				(void) close(fd);
>		}
>	}
>-----8<-----[ patch ]-----8<-----

I committed this in -current.  I'll MFC it into -stable in a
few days.  Thanks!

-- 
Garance Alistair Drosehn            =   gad_at_gilead.netel.rpi.edu
Senior Systems Programmer           or  gad_at_freebsd.org
Rensselaer Polytechnic Institute    or  drosih_at_rpi.edu
Received on Sat Aug 02 2003 - 14:14:21 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:17 UTC