]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Explicit cast to intmax_t for uid and gid in archive_write_disk.c.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Thu, 25 Feb 2010 14:05:35 +0000 (09:05 -0500)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Thu, 25 Feb 2010 14:05:35 +0000 (09:05 -0500)
SVN-Revision: 1983

libarchive/archive_write_disk.c

index f5c0f98cdbe3b2084ea42b8b9a884fb0994bb39f..9a014689ba29b334411cfacca2e15069d52194b2 100644 (file)
@@ -1877,7 +1877,7 @@ set_ownership(struct archive_write_disk *a)
        /* If we know we can't change it, don't bother trying. */
        if (a->user_uid != 0  &&  a->user_uid != a->uid) {
                archive_set_error(&a->archive, errno,
-                   "Can't set UID=%jd", a->uid);
+                   "Can't set UID=%jd", (intmax_t)a->uid);
                return (ARCHIVE_WARN);
        }
 #endif
@@ -1908,8 +1908,8 @@ set_ownership(struct archive_write_disk *a)
 #endif
 
        archive_set_error(&a->archive, errno,
-           "Can't set user=%jd/group=%jd for %s", a->uid, a->gid,
-           a->name);
+           "Can't set user=%jd/group=%jd for %s",
+           (intmax_t)a->uid, (intmax_t)a->gid, a->name);
        return (ARCHIVE_WARN);
 }