]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix a printf format type for id_t. FreeBSD's id_t is int64_t.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Wed, 29 Feb 2012 01:56:57 +0000 (10:56 +0900)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Wed, 29 Feb 2012 02:04:18 +0000 (11:04 +0900)
cpio/cpio.c

index 2c28d884dbe3722b0c55ed02253362b5df158ef8..29ef9f97f0bf2996feb1193f20306a30e3216825 100644 (file)
@@ -1306,7 +1306,8 @@ lookup_uname_helper(struct cpio *cpio, const char **name, id_t id)
        if (pwent == NULL) {
                *name = NULL;
                if (errno != 0 && errno != ENOENT)
-                       lafe_warnc(errno, "getpwuid(%d) failed", id);
+                       lafe_warnc(errno, "getpwuid(%s) failed",
+                           cpio_i64toa((int64_t)id));
                return (errno);
        }
 
@@ -1333,7 +1334,8 @@ lookup_gname_helper(struct cpio *cpio, const char **name, id_t id)
        if (grent == NULL) {
                *name = NULL;
                if (errno != 0)
-                       lafe_warnc(errno, "getgrgid(%d) failed", id);
+                       lafe_warnc(errno, "getgrgid(%s) failed",
+                           cpio_i64toa((int64_t)id));
                return (errno);
        }