--- /n/sources/plan9/sys/src/cmd/gzip/unzip.c Fri Feb 28 10:50:04 2014 +++ /sys/src/cmd/gzip/unzip.c Sun Aug 30 00:00:00 2026 @@ -52,7 +52,7 @@ static int autodir; static void usage(void) { - fprint(2, "usage: unzip [-cistTvD] [-f zipfile] [file ...]\n"); + fprint(2, "usage: unzip [-acistTvD] [-f zipfile] [file ...]\n"); exits("usage"); } @@ -353,7 +353,7 @@ mkpdirs(char *path) { int rv = 0; char *sl = strrchr(path, '/'); -print("%s\n", path); + if (sl != nil) { *sl = '\0'; rv = mkdirs(path); --- /n/sources/plan9/sys/man/1/gzip Fri Aug 10 06:00:02 2007 +++ /sys/man/1/gzip Sun Aug 30 00:00:00 2026 @@ -49,14 +49,14 @@ gzip, gunzip, bzip2, bunzip2, lzip, lunzip, compress, uncompress, zip, unzip \- ] .PP .B zip -.RB [ -avD [ 1-9 ]] +.RB [ -vD [ 1-9 ]] .RB [ -f .IR zipfile ] .I file .RB [ ... ] .br .B unzip -.RB [ -cistTvD ] +.RB [ -acistTvD ] .RB [ -f .IR zipfile ] .RI [ file @@ -171,7 +171,7 @@ The options are: .\" .TP 0.6i .TP 0.3i .B -a -Automaticialy creates directories as needed, needed for zip files +Automatically creates directories as needed, needed for zip files created by broken implementations which omit directories. .TP .B -c