Plug file descriptor leak in implementation of -n option.

This commit is contained in:
Tim J. Robbins 2004-06-05 02:32:21 +00:00
parent f99619a0dc
commit 7807cb2439
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130102

View file

@ -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",