Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/bin/pax



Module Name:    src
Committed By:   dsl
Date:           Sat Feb 11 11:04:58 UTC 2006

Modified Files:
        src/bin/pax: ar_subs.c extern.h pax.c

Log Message:
Ensure we exit with an error if we don't actually do anything.
There are a lot of tty_warn(0,...) and syswarn(0,...) which probably ought
to be tty_warn/syswarn(1,...) to force an error exit.  However some are
used in interactive parts (eg opening a continuation archive) where there
is a separate retry loop.
So we just pass a failure code out to main() - how quaint!
This should now cause the NetBSD build to fail when gzip tries to write
to a non-existant directory.
(I suspect there are still many errors that don't get reported correctly.)


To generate a diff of this commit:
cvs rdiff -r1.48 -r1.49 src/bin/pax/ar_subs.c
cvs rdiff -r1.49 -r1.50 src/bin/pax/extern.h
cvs rdiff -r1.39 -r1.40 src/bin/pax/pax.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index