cvs commit: src/usr.bin/tar write.c
Colin Percival
cperciva at FreeBSD.org
Thu May 3 04:33:11 UTC 2007
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 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
Revision Changes Path
1.62 +10 -0 src/usr.bin/tar/write.c
More information about the cvs-src
mailing list