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:
Colin Walters 2019-01-16 08:36:55 -05:00 committed by Atomic Bot
parent c79d792fd5
commit c63ee3cef4
1 changed files with 1 additions and 1 deletions

View File

@ -4287,7 +4287,7 @@ import_one_object_direct (OstreeRepo *dest_repo,
if (bytes == NULL)
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),
g_bytes_get_size (bytes), 0)) != 0)
return glnx_throw_errno_prefix (error, "fsetxattr");