]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Don't warn if a UID can't be looked up. Apparently,
authorTim Kientzle <kientzle@gmail.com>
Tue, 5 Jan 2010 16:42:28 +0000 (11:42 -0500)
committerTim Kientzle <kientzle@gmail.com>
Tue, 5 Jan 2010 16:42:28 +0000 (11:42 -0500)
recent Mac OS versions return a bogus ENOENT error
if a UID cannot be looked up on this system.

SVN-Revision: 1804

cpio/cpio.c

index 1a771c7a47cc203fc1f7bdb5bd208a1c3f8ea228..1b2622e2f36108d60cddcade3cd36df2f1639520 100644 (file)
@@ -1200,7 +1200,7 @@ lookup_uname_helper(struct cpio *cpio, const char **name, id_t id)
        pwent = getpwuid((uid_t)id);
        if (pwent == NULL) {
                *name = NULL;
-               if (errno != 0)
+               if (errno != 0 && errno != ENOENT)
                        lafe_warnc(errno, "getpwuid(%d) failed", id);
                return (errno);
        }