Date: Thu, 3 May 2007 04:33:11 +0000 (UTC) From: Colin Percival <cperciva@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/tar write.c Message-ID: <200705030433.l434XBvW005733@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200705030433.l434XBvW005733>
