From: Tim Kientzle Date: Tue, 5 Jan 2010 16:42:28 +0000 (-0500) Subject: Don't warn if a UID can't be looked up. Apparently, X-Git-Tag: v2.8.0~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ee279d2378a83083ce3fe795f39b231277ba56c;p=thirdparty%2Flibarchive.git Don't warn if a UID can't be looked up. Apparently, recent Mac OS versions return a bogus ENOENT error if a UID cannot be looked up on this system. SVN-Revision: 1804 --- diff --git a/cpio/cpio.c b/cpio/cpio.c index 1a771c7a4..1b2622e2f 100644 --- a/cpio/cpio.c +++ b/cpio/cpio.c @@ -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); }