]> Dogcows Code - chaz/tar/commitdiff
Minor fixes.
authorSergey Poznyakoff <gray@gnu.org.ua>
Sun, 9 Aug 2009 08:20:52 +0000 (11:20 +0300)
committerSergey Poznyakoff <gray@gnu.org.ua>
Sun, 9 Aug 2009 08:20:52 +0000 (11:20 +0300)
* src/misc.c (file_removed_diag): Set exit code to TAREXIT_DIFFERS.

src/misc.c

index 116eb9673a615e7144b1e110ab5ff580e648435d..3a23aa4d2fd0664b6b9680f3151484484671c867 100644 (file)
@@ -750,9 +750,13 @@ file_removed_diag (const char *name, bool top_level,
                   void (*diagfn) (char const *name))
 {
   if (!top_level && errno == ENOENT)
-    WARNOPT (WARN_FILE_REMOVED,
-            (0, 0, _("%s: File removed before we read it"),
-             quotearg_colon (name)));
+    {
+      WARNOPT (WARN_FILE_REMOVED,
+              (0, 0, _("%s: File removed before we read it"),
+               quotearg_colon (name)));
+      if (exit_status == TAREXIT_SUCCESS)
+       exit_status = TAREXIT_DIFFERS;
+    }      
   else
     diagfn (name);
 }
This page took 0.028818 seconds and 4 git commands to generate.