OpenBSD CVS

CVS log for src/usr.bin/compress/main.c


[BACK] Up to [local] / src / usr.bin / compress

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: OPENBSD_7_5


Revision 1.106 / (download) - annotate - [select for diffs], Sat Nov 11 02:52:55 2023 UTC (6 months, 3 weeks ago) by gkoehler
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, HEAD
Changes since 1.105: +3 -3 lines
Diff to previous 1.105 (colored)

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@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.