]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Eliminate the cause of segfault at test_write_disk_perms on cygwin.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Thu, 25 Feb 2010 10:27:16 +0000 (05:27 -0500)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Thu, 25 Feb 2010 10:27:16 +0000 (05:27 -0500)
uid and gid are int64_t.

SVN-Revision: 1980

libarchive/archive_write_disk.c

index 1ef190a022c7e3c59aaa23f3a37ad5fca1391365..f5c0f98cdbe3b2084ea42b8b9a884fb0994bb39f 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=%d", a->uid);
+                   "Can't set UID=%jd", a->uid);
                return (ARCHIVE_WARN);
        }
 #endif
@@ -1908,7 +1908,7 @@ set_ownership(struct archive_write_disk *a)
 #endif
 
        archive_set_error(&a->archive, errno,
-           "Can't set user=%d/group=%d for %s", a->uid, a->gid,
+           "Can't set user=%jd/group=%jd for %s", a->uid, a->gid,
            a->name);
        return (ARCHIVE_WARN);
 }