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:
parent
48bf87258f
commit
0d5a03997a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118370
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user