CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]  2023/07/10 10:28:33

Modified files:
        bin/pax        : ar_subs.c 

Log message:
Don't open files that will be skipped

Previously, when creating an archive file with pax(1), pax will attempt
to open a file even if the file will be skipped due to an -s replacement
with the empty string. With this change, pax will not attempt to open
files that it knows will be skipped.

When doing direct copies to a directory (-rw), pax already skips
the file before attempting to open it. So this makes the behavior
more consistent.

This can measurably speed up pax when skipping a large number of files.

OK tb@

Reply via email to