]> Dogcows Code - chaz/tar/blobdiff - src/extract.c
Fix --keep-old-files option.
[chaz/tar] / src / extract.c
index d24f98f605e12137c893099b21b724c44c63f661..6c3849274e1281e72f9334e5a6e4f288e5f33022 100644 (file)
@@ -642,9 +642,14 @@ maybe_recoverable (char *file_name, bool regular, bool *interdir_made)
 
       switch (old_files_option)
        {
-       case KEEP_OLD_FILES:
+       case SKIP_OLD_FILES:
+         WARNOPT (WARN_EXISTING_FILE,
+                  (0, 0, _("%s: skipping existing file"), file_name));
          return RECOVER_SKIP;
 
+       case KEEP_OLD_FILES:
+         return RECOVER_NO;
+         
        case KEEP_NEWER_FILES:
          if (file_newer_p (file_name, stp, &current_stat_info))
            break;
This page took 0.023092 seconds and 4 git commands to generate.