lib/sysroot: Fix error message about creating `/var/lib`
authorJonathan Lebon <jonathan@jlebon.com>
Tue, 3 Aug 2021 20:34:11 +0000 (16:34 -0400)
committerJonathan Lebon <jonathan@jlebon.com>
Tue, 3 Aug 2021 20:49:49 +0000 (16:49 -0400)
Reported-by: Seth Arnold <seth.arnold@canonical.com>
src/libostree/ostree-sysroot.c

index 2fcd432381da2f80c2019377ba42aae3b548683a..be5306b7716844ab12086c888b103eed185434be 100644 (file)
@@ -1790,7 +1790,7 @@ ostree_sysroot_init_osname (OstreeSysroot       *self,
     return glnx_throw_errno_prefix (error, "fchmod %s", "var/tmp");
 
   if (mkdirat (dfd, "var/lib", 0777) < 0)
-    return glnx_throw_errno_prefix (error, "Creating %s", "var/tmp");
+    return glnx_throw_errno_prefix (error, "Creating %s", "var/lib");
 
   /* This needs to be available and properly labeled early during the boot
    * process (before tmpfiles.d kicks in), so that journald can flush logs from