freebsd-ports/archivers/9e/files/patch-ab
Wes Peters e44dc6976a 9e - a simple Plan9 distribution unpacker
PR:		ports/19459
Submitted by:	Jerry Hicks <jhix@mindspring.com>
2000-06-27 03:55:27 +00:00

24 lines
737 B
Plaintext

--- 9e.c.orig Thu Jun 15 13:40:52 2000
+++ 9e.c Fri Jun 23 04:16:00 2000
@@ -139,17 +139,16 @@
}
if(Hdrs) {
- fprintf(stderr, "%s %lo %s %s %ld %ld\n", namebuf, mode,
+ fprintf(stderr, "%s %lo %s %s %ld %ld\n", name, mode,
owner, group, mtime, size);
fout = NULL;
} else {
if (Verbose)
- fprintf(stderr, "%s %d\n", namebuf, size);
+ fprintf(stderr, "%s\n", name);
if(mode & CHDIR) {
assert(size == 0);
/* Give ourselves read, write, and execute permission */
- if(mkdir(name, (mode & ~CHDIR) | 0700) < 0)
- warn("mkdir(2) failed for", name);
+ mkdir(name, (mode & ~CHDIR) | 0700);
continue;
}
if((fout=fopen(name, "w+b")) == NULL)