From 71c2c8c3034e67a362a473dca3df9120de56a6d2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fran=C3=A7ois=20Pinard?= Date: Wed, 16 Nov 1994 02:55:53 +0000 Subject: [PATCH] *** empty log message *** --- src/list.c | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/list.c b/src/list.c index 251a768..cdf414b 100644 --- a/src/list.c +++ b/src/list.c @@ -172,6 +172,7 @@ read_and(do_something) break; }; + restore_saved_dir_info (); close_archive(); names_notfound(); /* Print names not found */ } @@ -380,8 +381,14 @@ decode_header(header, st, stdp, wantug) st->st_uid = from_oct(8, header->header.uid); st->st_gid = from_oct(8, header->header.gid); #else - st->st_uid = finduid(header->header.uname); - st->st_gid = findgid(header->header.gname); + st->st_uid = + (*header->header.uname + ? finduid (header->header.uname) + : from_oct (8, header->header.uid)); + st->st_gid = + (*header->header.gname + ? findgid (header->header.gname) + : from_oct (8, header->header.gid)); #endif } #if defined(S_IFBLK) || defined(S_IFCHR) @@ -525,13 +532,15 @@ print_header() user = head->header.uname; } else { user = uform; - (void)sprintf(uform, "%d", (int)hstat.st_uid); + (void)sprintf(uform, "%d", + from_oct (8, head->header.uid)); } if (*head->header.gname && head_standard) { group = head->header.gname; } else { group = gform; - (void)sprintf(gform, "%d", (int)hstat.st_gid); + (void)sprintf(gform, "%d", + from_oct (8, head->header.gid)); } /* Format the file size or major/minor device numbers */ -- 2.45.2