mirror of
https://github.com/ostreedev/ostree.git
synced 2025-01-31 05:47:40 +03:00
lib/repo-commit: Import detached metadata even if hardlink exists
Spotted while reading through the code, it looks like the copy_detached_metadata() call is accidentally omitted if a hardlink already exists for the .commit object. Signed-off-by: Philip Withnall <withnall@endlessm.com> Closes: #1242 Approved by: cgwalters
This commit is contained in:
parent
133e9ae733
commit
86e072bdbe
@ -3319,7 +3319,7 @@ import_one_object_direct (OstreeRepo *dest_repo,
|
||||
if (linkat (src_repo->objects_dir_fd, loose_path_buf, dest_dfd, loose_path_buf, 0) != 0)
|
||||
{
|
||||
if (errno == EEXIST)
|
||||
return TRUE;
|
||||
did_hardlink = TRUE;
|
||||
else if (errno == EMLINK || errno == EXDEV || errno == EPERM)
|
||||
{
|
||||
/* EMLINK, EXDEV and EPERM shouldn't be fatal; we just can't do
|
||||
|
Loading…
x
Reference in New Issue
Block a user