write extended attributes by using fsetxattr
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.
This commit is contained in:
committed by
Daniel Stenberg
parent
892cacef43
commit
f1db21218b
@@ -2349,7 +2349,7 @@ CURL_CHECK_FUNC_LOCALTIME_R
|
||||
CURL_CHECK_FUNC_MEMRCHR
|
||||
CURL_CHECK_FUNC_POLL
|
||||
CURL_CHECK_FUNC_SETSOCKOPT
|
||||
CURL_CHECK_FUNC_SETXATTR
|
||||
CURL_CHECK_FUNC_FSETXATTR
|
||||
CURL_CHECK_FUNC_SIGACTION
|
||||
CURL_CHECK_FUNC_SIGINTERRUPT
|
||||
CURL_CHECK_FUNC_SIGNAL
|
||||
|
||||
Reference in New Issue
Block a user