Tar bug, runs out of files
Lou Salkind
salkind at cmcl2.UUCP
Tue Dec 13 07:54:45 AEST 1983
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);
More information about the Comp.bugs.4bsd.ucb-fixes
mailing list