diff options
author | gad <gad@FreeBSD.org> | 2003-08-02 23:03:37 +0000 |
---|---|---|
committer | gad <gad@FreeBSD.org> | 2003-08-02 23:03:37 +0000 |
commit | ff880b993e6ccf0433a67419c42064845d6f008a (patch) | |
tree | 9c715b01fcaaaa4a4f07019d0411930273891ce4 /usr.sbin/newsyslog | |
parent | 2a8e0c5c0ab64ec487005880e469d8875ec84225 (diff) | |
download | FreeBSD-src-ff880b993e6ccf0433a67419c42064845d6f008a.zip FreeBSD-src-ff880b993e6ccf0433a67419c42064845d6f008a.tar.gz |
Fix an 'bad file descriptor' error which would come up when using
the 'C' flag on an entry that also specifies 'user:group' info.
Submitted by: Riccardo Torrini <riccardo@torrini.org> in -current
MFC after: 4 days
Diffstat (limited to 'usr.sbin/newsyslog')
-rw-r--r-- | usr.sbin/newsyslog/newsyslog.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/usr.sbin/newsyslog/newsyslog.c b/usr.sbin/newsyslog/newsyslog.c index b9abb78..7ed501c 100644 --- a/usr.sbin/newsyslog/newsyslog.c +++ b/usr.sbin/newsyslog/newsyslog.c @@ -1764,7 +1764,6 @@ createlog(const struct conf_entry *ent) failed = fchown(fd, ent->uid, ent->gid); if (failed) err(1, "can't fchown temp file %s", tempfile); - (void) close(fd); } } |