Bug 8330
Summary: | tar 1.13.16 doesn't always ignore failed read during incremental archive build | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Jonathan Kamens <jik> |
Component: | tar | Assignee: | Bernhard Rosenkraenzer <bero> |
Status: | CLOSED RAWHIDE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.1 | CC: | gp |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2000-01-20 21:57:06 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Jonathan Kamens
2000-01-10 13:40:10 UTC
Should be fixed in 1.3.17. I found another place where failed reads are not ignored and should be. Here's an updated patch which covers both cases. --- tar-1.13.16/src/incremen.c Fri Dec 10 14:41:30 1999 +++ tar-1.13.16.new/src/incremen.c Thu Jan 13 09:12:40 2000 @@ -228,7 +228,10 @@ if (deref_stat (dereference_option, name_buffer, &stat_data)) { - stat_error (name_buffer); + if (ignore_failed_read_option && (errno == ENOENT)) + stat_warn (name_buffer); + else + stat_error (name_buffer); continue; } --- tar-1.13.16/src/names.c Wed Dec 8 18:14:28 1999 +++ tar-1.13.16.new/src/names.c Thu Jan 13 09:28:09 2000 @@ -822,7 +822,10 @@ if (deref_stat (dereference_option, name->name, &statbuf) != 0) { - stat_error (name->name); + if (ignore_failed_read_option && (errno == ENOENT)) + stat_warn (name->name); + else + stat_error (name->name); continue; } if (S_ISDIR (statbuf.st_mode)) Neither the fix to incremen.c nor the fix to names.c appears in 1.13.17. Thanks, fixed in 1.3.17-10 |