Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site cmcl2.UUCP Path: utzoo!linus!security!genrad!grkermit!masscomp!clyde!floyd!cmcl2!salkind From: salkind@cmcl2.UUCP (Lou Salkind) Newsgroups: net.bugs,net.bugs.4bsd Subject: Re: Tar bug, runs out of files Message-ID: <807@cmcl2.UUCP> Date: Mon, 12-Dec-83 16:54:45 EST Article-I.D.: cmcl2.807 Posted: Mon Dec 12 16:54:45 1983 Date-Received: Wed, 14-Dec-83 01:16:33 EST References: <1030@ncrcae.UUCP> Organization: New York University Lines: 22 The 4.2 bsd version of tar has a similar (yet different) bug. Here is the fix: *** /usr/src/bin/tar.c.dist Sun Sep 25 21:05:06 1983 --- /usr/src/bin/tar.c Mon Dec 12 16:46:52 1983 *************** *** 532,537 if (strlen(longname) >= NAMSIZ) { fprintf(stderr, "tar: %s: file name too long\n", longname); return; } strcpy(dblock.dbuf.name, longname); --- 532,538 ----- if (strlen(longname) >= NAMSIZ) { fprintf(stderr, "tar: %s: file name too long\n", longname); + close(infile); return; } strcpy(dblock.dbuf.name, longname);