Fix ACL preservation, apparently broken in 1.47.

Approved by:	rwatson
MFC after:	3 weeks
This commit is contained in:
Edward Tomasz Napierala 2008-08-07 07:29:26 +00:00
parent 8ad0fbc8a1
commit 2aafc4d48c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=181361

View File

@ -211,7 +211,6 @@ copy_file(const FTSENT *entp, int dne)
rval = 1;
}
}
(void)close(from_fd);
/*
* Don't remove the target even after an error. The target might
@ -231,6 +230,9 @@ copy_file(const FTSENT *entp, int dne)
rval = 1;
}
}
(void)close(from_fd);
return (rval);
}