diff options
author | trasz <trasz@FreeBSD.org> | 2008-09-09 12:31:42 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2008-09-09 12:31:42 +0000 |
commit | 4cf35e3404c7c8378e2f4fc5a506ed65b6565fe0 (patch) | |
tree | 8da18cddadde961c3269c9be775e8639a19b4e55 /bin | |
parent | f94dfca5261370e958ab0884a4bf8c736ba6752c (diff) | |
download | FreeBSD-src-4cf35e3404c7c8378e2f4fc5a506ed65b6565fe0.zip FreeBSD-src-4cf35e3404c7c8378e2f4fc5a506ed65b6565fe0.tar.gz |
Remove redundant close(2).
Submitted by: kensmith
Approved by: rwatson (mentor)
Diffstat (limited to 'bin')
-rw-r--r-- | bin/cp/utils.c | 1 |
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; |