1
0
mirror of https://github.com/openbsd/src.git synced 2024-12-22 16:42:56 -08:00
openbsd-src/usr.bin/compress
gkoehler eaf8e725e6 Ignore -N in "gzip -dN <in.gz" and "zcat -N in.gz"
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@
2023-11-11 02:52:55 +00:00
..
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