X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fextract.c;fp=src%2Fextract.c;h=6c3849274e1281e72f9334e5a6e4f288e5f33022;hb=7a5a3708cb8b33494cd6ac64bfe163f631a33edf;hp=60ec747f72a9e94d192ab30a31e4da91adf4f1a3;hpb=02bf3a96a931678211117534ee535863c780c6dc;p=chaz%2Ftar diff --git a/src/extract.c b/src/extract.c index 60ec747..6c38492 100644 --- a/src/extract.c +++ b/src/extract.c @@ -642,11 +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, ¤t_stat_info)) break;