HomeFreeBSD

If lstat(2) fails, have bsdtar return a non-zero exit code if the
rS169226Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

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 is a compromise between the situation prior to revision 1.57
(where a race between tar(1) and rm(1) could cause tar(1) to
spuriously report an error) and the situation after revision 1.57
(where "tar -c /no/such/path" prints a warning but returns with
an exit code of zero).

Inspired by: rafan
MFC after: 1 week

Details

Provenance
cpercivaAuthored on
Parents
rS169225: Argh, fix a mis-merge.
Branches
Unknown
Tags
Unknown

Event Timeline