diff --git a/bin/cp/utils.c b/bin/cp/utils.c index b8f340a49bc..2d8987ff8b4 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;