commit 22c0ae67a43b75967c384732a64c0001f0be2450 parent e6c532a47a51d6dcc1157b5a55f6e4ab739a3752 Author: sin <sin@2f30.org> Date: Tue, 21 Apr 2015 16:18:08 +0100 tar: Don't error out if we can't pull pw/gr entries Diffstat:
M | tar.c | | | 13 | +++---------- |
1 file changed, 3 insertions(+), 10 deletions(-)
diff --git a/tar.c b/tar.c @@ -109,16 +109,9 @@ archive(const char *path) weprintf("ignoring %s\n", path); return 0; } - errno = 0; - if (!(pw = getpwuid(st.st_uid)) && errno) { - weprintf("getpwuid:"); - return 0; - } - errno = 0; - if (!(gr = getgrgid(st.st_gid)) && errno) { - weprintf("getgrgid:"); - return 0; - } + + pw = getpwuid(st.st_uid); + gr = getgrgid(st.st_gid); h = (void *)b; memset(b, 0, sizeof(b));