lib/repo-checkout: fix typo in error message
authorLuca BRUNO <luca.bruno@coreos.com>
Thu, 13 Oct 2022 10:38:11 +0000 (10:38 +0000)
committerLuca BRUNO <luca.bruno@coreos.com>
Thu, 13 Oct 2022 10:38:11 +0000 (10:38 +0000)
This fixes a typo in an error message, resulting in a GID vs UID
mixup. It was detected by RH internal static checks.

src/libostree/ostree-repo-checkout.c

index 7c7d0cc79e5d9c66e203a8dfb44be5b5e4392607..a5b013561819c2d661943b04e9dd78a7885961a6 100644 (file)
@@ -684,7 +684,7 @@ _checkout_overlayfs_whiteout_at (OstreeRepo                     *repo,
 
             if (uid != dest_stbuf.st_uid)
               return glnx_throw(error, "existing destination file %s does not match uid %d",
-                                destination_name, gid);
+                                destination_name, uid);
 
             if ((file_mode & ALLPERMS) != (dest_stbuf.st_mode & ALLPERMS))
               return glnx_throw(error, "existing destination file %s does not match mode %o",