mirror of
https://github.com/openbsd/src.git
synced 2024-12-22 16:42:56 -08:00
eaf8e725e6
Have -c override -N, like other gzip implementations. Before, our -N (decompress to stored name) overrode -c (cat to stdout) and crashed with a pledge violation, because the pledge for -c excludes wpath. Guilherme Janczak reported the pledge violation in July 2022 and provided a diff to prevent it, along with a regress test. I rewrote the diff and expanded the regress. ok kn@ millert@ |
||
---|---|---|
.. | ||
compress.1 | ||
compress.h | ||
gzexe | ||
gzexe.1 | ||
gzip.1 | ||
gzopen.c | ||
main.c | ||
Makefile | ||
nullopen.c | ||
zdiff | ||
zdiff.1 | ||
zforce | ||
zforce.1 | ||
zipopen.c | ||
zmore | ||
zmore.1 | ||
znew | ||
znew.1 | ||
zopen.c |