lib/commit: Set xattr on correct fd for bare-user → bare-user imports
Another fix to https://github.com/ostreedev/ostree/pull/1771 Closes: #1803 Approved by: jlebon
This commit is contained in:
parent
c79d792fd5
commit
c63ee3cef4
|
|
@ -4287,7 +4287,7 @@ import_one_object_direct (OstreeRepo *dest_repo,
|
||||||
if (bytes == NULL)
|
if (bytes == NULL)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if (TEMP_FAILURE_RETRY (fsetxattr (src_fd, "user.ostreemeta",
|
if (TEMP_FAILURE_RETRY (fsetxattr (tmp_dest.fd, "user.ostreemeta",
|
||||||
(char*)g_bytes_get_data (bytes, NULL),
|
(char*)g_bytes_get_data (bytes, NULL),
|
||||||
g_bytes_get_size (bytes), 0)) != 0)
|
g_bytes_get_size (bytes), 0)) != 0)
|
||||||
return glnx_throw_errno_prefix (error, "fsetxattr");
|
return glnx_throw_errno_prefix (error, "fsetxattr");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue