Bug 8534 - yet another problem with tar reporting "stat" errors inappropriately
Summary: yet another problem with tar reporting "stat" errors inappropriately
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: tar (Show other bugs)
(Show other bugs)
Version: 6.1
Hardware: All Linux
medium
medium
Target Milestone: ---
Assignee: Bernhard Rosenkraenzer
QA Contact:
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-01-17 13:33 UTC by Jonathan Kamens
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-01-18 19:55:12 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

Description Jonathan Kamens 2000-01-17 13:33:28 UTC
I found yet another instance in which tar fails when it can't "stat" a file
even though --ignore-failed-read is specified.  The problem is a reversed
"if" statement in src/create.c.  A patch:

--- src/create.c~	Sun Jan 16 11:14:07 2000
+++ src/create.c	Mon Jan 17 08:36:10 2000
@@ -963,9 +963,9 @@
   if (deref_stat (dereference_option, p, &current_stat) != 0)
     {
       if (ignore_failed_read_option)
-	stat_error (p);
-      else
 	stat_warn (p);
+      else
+	stat_error (p);
       return;
     }

Comment 1 Bernhard Rosenkraenzer 2000-01-18 19:55:59 UTC
Fixed in 1.3.17


Note You need to log in before you can comment on or make changes to this bug.