mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 09:21:50 -05:00

Instead of reopening the downloaded file, fsetxattr uses the (already open) file descriptor to attach extended attributes. This makes the procedure more robust against errors caused by moved or deleted files.