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
This commit is contained in:
Garance A Drosehn 2003-08-02 23:03:37 +00:00
parent 48bf87258f
commit 0d5a03997a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118370

View File

@ -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);
}
}