]> git.ipfire.org Git - thirdparty/tar.git/commitdiff
Remove erroneous abort() call
authorSergey Poznyakoff <gray@gnu.org.ua>
Thu, 10 Jan 2019 16:18:49 +0000 (18:18 +0200)
committerSergey Poznyakoff <gray@gnu.org.ua>
Thu, 10 Jan 2019 16:18:49 +0000 (18:18 +0200)
The call was introduced by commit ccef8581. It caused tar to abort
on perfectly normal operations, like untarring archives containing
./ with the -U option,

See http://lists.gnu.org/archive/html/bug-tar/2019-01/msg00019.html
for details.

* src/extract.c (maybe_recoverable): Remove misplaced call to abort().

src/extract.c

index 090b866ce246836eac96e417094044c3f0fda21f..8276f8fe25d66737fd81cc4734f3bb5d4e78be52 100644 (file)
@@ -787,7 +787,7 @@ maybe_recoverable (char *file_name, bool regular, bool *interdir_made)
        case UNLINK_FIRST_OLD_FILES:
          break;
        }
-      abort (); /* notreached */
+      FALLTHROUGH;
 
     case ENOENT:
       /* Attempt creating missing intermediate directories.  */