diff options
Diffstat (limited to 'bin')
| -rw-r--r-- | bin/cp/utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/cp/utils.c b/bin/cp/utils.c index 97695919ec6d3..7ad8788cae501 100644 --- a/bin/cp/utils.c +++ b/bin/cp/utils.c @@ -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", |
