Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!decvax!harpo!seismo!hao!hplabs!sri-unix!salkind@nyu From: salkind%nyu@sri-unix.UUCP Newsgroups: net.unix-wizards Subject: ar bug Message-ID: <16725@sri-arpa.UUCP> Date: Fri, 10-Feb-84 11:07:44 EST Article-I.D.: sri-arpa.16725 Posted: Fri Feb 10 11:07:44 1984 Date-Received: Mon, 20-Feb-84 01:14:07 EST Lines: 25 From: Lou SalkindSubject: ar bug Index: bin/ar.c 4.2BSD Description: If you try to archive a file with a uid or gid greater than 32K, ar will fail when you try to read the archive back in. You will get the message "Malformed archive." Repeat-By: mkdir f chgrp 50000 f cd f cp /etc/passwd f ar r f.a passwd ar t f.a Fix: When the file header is written out, cast the uid and gid to an unsigned short. "diff ar.c.dist ar.c" follows: 510,511c510,511 < stbuf.st_uid, < stbuf.st_gid, --- > (u_short)stbuf.st_uid, > (u_short)stbuf.st_gid,