summaryrefslogtreecommitdiffstats
path: root/bin/cp
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2008-09-09 12:31:42 +0000
committertrasz <trasz@FreeBSD.org>2008-09-09 12:31:42 +0000
commit4cf35e3404c7c8378e2f4fc5a506ed65b6565fe0 (patch)
tree8da18cddadde961c3269c9be775e8639a19b4e55 /bin/cp
parentf94dfca5261370e958ab0884a4bf8c736ba6752c (diff)
downloadFreeBSD-src-4cf35e3404c7c8378e2f4fc5a506ed65b6565fe0.zip
FreeBSD-src-4cf35e3404c7c8378e2f4fc5a506ed65b6565fe0.tar.gz
Remove redundant close(2).
Submitted by: kensmith Approved by: rwatson (mentor)
Diffstat (limited to 'bin/cp')
-rw-r--r--bin/cp/utils.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/bin/cp/utils.c b/bin/cp/utils.c
index b8f340a..2d8987f 100644
--- a/bin/cp/utils.c
+++ b/bin/cp/utils.c
@@ -224,7 +224,6 @@ copy_file(const FTSENT *entp, int dne)
rval = 1;
if (pflag && preserve_fd_acls(from_fd, to_fd) != 0)
rval = 1;
- (void)close(from_fd);
if (close(to_fd)) {
warn("%s", to.p_path);
rval = 1;
OpenPOWER on IntegriCloud