Remove code that attempted to manage xattrs out of output file

Feature requested in issue #1179, but caused #1195. On further review,
there is no platform independent way to manage extended attributes
and it is not clear copying them through is necessarily the sensible
thing to do.

Closes #1179.
This commit is contained in:
James R. Barlow
2023-11-29 23:25:51 -08:00
parent c90d5cd84b
commit 2affa83efe

View File

@@ -992,10 +992,3 @@ def copy_final(
# get the appropriate umask, ownership, etc.
with open(output_file, 'w+b') as output_stream:
copyfileobj(input_stream, output_stream)
# Attempt to copy file attributes from input to output
if original_file:
with suppress(OSError):
# Copy original file's permissions, ownership, etc. if possible
copystat(original_file, output_file)
# Set output file's modification time to now
Path(output_file).touch(exist_ok=True)