tar: Don't error out if we can't pull pw/gr entries

This commit is contained in:
sin 2015-04-21 16:18:08 +01:00
parent e6c532a47a
commit 22c0ae67a4

13
tar.c
View File

@ -109,16 +109,9 @@ archive(const char *path)
weprintf("ignoring %s\n", path); weprintf("ignoring %s\n", path);
return 0; return 0;
} }
errno = 0;
if (!(pw = getpwuid(st.st_uid)) && errno) { pw = getpwuid(st.st_uid);
weprintf("getpwuid:"); gr = getgrgid(st.st_gid);
return 0;
}
errno = 0;
if (!(gr = getgrgid(st.st_gid)) && errno) {
weprintf("getgrgid:");
return 0;
}
h = (void *)b; h = (void *)b;
memset(b, 0, sizeof(b)); memset(b, 0, sizeof(b));