cvs commit: src/usr.bin/tar write.c
Tim Kientzle
kientzle at freebsd.org
Thu May 3 05:16:38 UTC 2007
Colin Percival wrote:
> cperciva 2007-05-03 04:33:11 UTC
>
> FreeBSD src repository
>
> Modified files:
> usr.bin/tar write.c
> Log:
> If lstat(2) fails, have bsdtar return a non-zero exit code if the
> failed path is one which was specified on the command line.
This looks like a nice compromise.
I wonder if it would be simpler to set non-zero exit only
if this is the first path returned from tree_next() (which
should be the path given on the command line). That
would avoid the headache of having to perform a textual
path comparison.
A simple flag to indicate if this is the first time
through the loop should suffice, I think.
Tim
More information about the cvs-src
mailing list