mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 01:01:06 +00:00
Plug file descriptor leak in implementation of -n option.
This commit is contained in:
parent
f99619a0dc
commit
7807cb2439
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130102
|
@ -88,6 +88,7 @@ copy_file(const FTSENT *entp, int dne)
|
|||
if (nflag) {
|
||||
if (vflag)
|
||||
printf("%s not overwritten\n", to.p_path);
|
||||
(void)close(from_fd);
|
||||
return (0);
|
||||
} else if (iflag) {
|
||||
(void)fprintf(stderr, "overwrite %s? %s",
|
||||
|
|
Loading…
Reference in a new issue