From: François Pinard Date: Wed, 16 Nov 1994 02:55:53 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=71c2c8c3034e67a362a473dca3df9120de56a6d2;p=chaz%2Ftar *** empty log message *** --- 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 */