]> Dogcows Code - chaz/tar/commitdiff
Bugfix.
authorSergey Poznyakoff <gray@gnu.org.ua>
Wed, 14 Oct 2009 14:51:19 +0000 (17:51 +0300)
committerSergey Poznyakoff <gray@gnu.org.ua>
Wed, 14 Oct 2009 14:51:19 +0000 (17:51 +0300)
* src/buffer.c (_open_archive): Call guess_seekable_archive
only if the call to open_compressed_archive succeeded.

src/buffer.c

index d7ff214f604070cbec9087d672b695823506b668..613a7e8449f87a0dcbed2ae4e72f3f5323ffcbc1 100644 (file)
@@ -596,7 +596,8 @@ _open_archive (enum access_mode wanted_access)
       {
       case ACCESS_READ:
         archive = open_compressed_archive ();
-       guess_seekable_archive ();
+       if (archive >= 0)
+         guess_seekable_archive ();
         break;
 
       case ACCESS_WRITE:
This page took 0.023347 seconds and 4 git commands to generate.