diff options
author | Tim Kientzle <kientzle@FreeBSD.org> | 2007-02-18 06:23:57 +0000 |
---|---|---|
committer | Tim Kientzle <kientzle@FreeBSD.org> | 2007-02-18 06:23:57 +0000 |
commit | 6bf00d8bc7c41f3b3c9a5214f15c6008c64c1e21 (patch) | |
tree | bf0b944e83d3282c20b25214f14bf7d156fc8540 /usr.bin/tar | |
parent | 711585d087347328077e646ab596535568d5a14e (diff) | |
download | src-6bf00d8bc7c41f3b3c9a5214f15c6008c64c1e21.tar.gz src-6bf00d8bc7c41f3b3c9a5214f15c6008c64c1e21.zip |
Andrew and Colin each pointed out to me that truncating the backup
of a growing file should not be considered a "bad thing."
PR: bin/108990
MFC after: 7 days
Pointy hat: /me
Notes
Notes:
svn path=/head/; revision=166809
Diffstat (limited to 'usr.bin/tar')
-rw-r--r-- | usr.bin/tar/write.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/usr.bin/tar/write.c b/usr.bin/tar/write.c index d7fbcfb8b15f..255074ca0f02 100644 --- a/usr.bin/tar/write.c +++ b/usr.bin/tar/write.c @@ -860,8 +860,6 @@ write_file_data(struct bsdtar *bsdtar, struct archive *a, int fd) /* Write was truncated; warn but continue. */ bsdtar_warnc(bsdtar, 0, "Truncated write; file may have grown while being archived."); - /* Make bsdtar return a final error because of this. */ - bsdtar->return_value = 1; return (0); } bytes_read = read(fd, buff, sizeof(buff)); |