[ostree] core: Fix case where we hardlinked successfully but thought we didn't



commit 5b512d4c78f6d1ff047cfc22a1cce55d0f8b63e6
Author: Colin Walters <walters verbum org>
Date:   Sat Oct 13 18:41:47 2012 -0400

    core: Fix case where we hardlinked successfully but thought we didn't
    
    We need to return hardlink_supported even if we had to do an unlink
    first.

 src/libostree/ostree-repo.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/libostree/ostree-repo.c b/src/libostree/ostree-repo.c
index 440acbe..020a595 100644
--- a/src/libostree/ostree-repo.c
+++ b/src/libostree/ostree-repo.c
@@ -3235,6 +3235,7 @@ checkout_file_hardlink (OstreeRepo                  *self,
           ot_util_set_error_from_errno (error, errno);
           goto out;
         }
+      ret_was_supported = TRUE;
     }
   else
     {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]