diff options
| author | Tim J. Robbins <tjr@FreeBSD.org> | 2004-06-05 02:32:21 +0000 |
|---|---|---|
| committer | Tim J. Robbins <tjr@FreeBSD.org> | 2004-06-05 02:32:21 +0000 |
| commit | 7807cb2439e1e5b2b1026f2a7fc95c602b8b1c68 (patch) | |
| tree | c4a8df292e182f2d53c7c414e84786feb9899a05 /bin | |
| parent | f99619a0dcb741aa6634980695717dd3a6a2b472 (diff) | |
Notes
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", |
