]> Dogcows Code - chaz/tar/blobdiff - src/misc.c
Avoid overwriting exit_status with a value indicating less important condition.
[chaz/tar] / src / misc.c
index 3a23aa4d2fd0664b6b9680f3151484484671c867..a087263556804d251b3a1e0a901b44448c8de18f 100644 (file)
@@ -754,8 +754,7 @@ file_removed_diag (const char *name, bool top_level,
       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;
+      set_exit_status (TAREXIT_DIFFERS);
     }      
   else
     diagfn (name);
@@ -770,8 +769,7 @@ dir_removed_diag (const char *name, bool top_level,
       WARNOPT (WARN_FILE_REMOVED,
               (0, 0, _("%s: Directory removed before we read it"),
                quotearg_colon (name)));
-      if (exit_status == TAREXIT_SUCCESS)
-       exit_status = TAREXIT_DIFFERS;
+      set_exit_status (TAREXIT_DIFFERS);
     }
   else
     diagfn (name);
This page took 0.020718 seconds and 4 git commands to generate.