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
This commit is contained in:
Tim Kientzle 2007-02-18 06:23:57 +00:00
parent 711585d087
commit 6bf00d8bc7

View File

@ -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));