newsyslog problems with -C
Garance A Drosihn
drosih at rpi.edu
Sat Aug 2 16:14:21 PDT 2003
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
>@@ -1764,7 +1764,6 @@
> 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
More information about the freebsd-current
mailing list