]> Dogcows Code - chaz/tar/commitdiff
Incremental options are allowed with --format=pax
authorSergey Poznyakoff <gray@gnu.org.ua>
Mon, 7 Nov 2005 02:50:14 +0000 (02:50 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Mon, 7 Nov 2005 02:50:14 +0000 (02:50 +0000)
(tar_stat_destroy): Free dumpdir

src/tar.c

index 6f21cb58f51d703679585e44b70bf828c15467f5..a25f2ce0b76536a610bbe51e7a8dd2cb37523e53 100644 (file)
--- a/src/tar.c
+++ b/src/tar.c
@@ -1672,9 +1672,14 @@ decode_options (int argc, char **argv)
                   | FORMAT_MASK (GNU_FORMAT));
 
 
-  if (incremental_option || multi_volume_option)
-    assert_format (FORMAT_MASK (OLDGNU_FORMAT) | FORMAT_MASK (GNU_FORMAT));
+  if (incremental_option)
+    assert_format (FORMAT_MASK (OLDGNU_FORMAT)
+                  | FORMAT_MASK (GNU_FORMAT)
+                  | FORMAT_MASK (POSIX_FORMAT));
 
+  if (multi_volume_option)
+    assert_format (FORMAT_MASK (OLDGNU_FORMAT) | FORMAT_MASK (GNU_FORMAT));
+  
   if (sparse_option)
     assert_format (FORMAT_MASK (OLDGNU_FORMAT)
                   | FORMAT_MASK (GNU_FORMAT)
@@ -1973,5 +1978,6 @@ tar_stat_destroy (struct tar_stat_info *st)
   free (st->uname);
   free (st->gname);
   free (st->sparse_map);
+  free (st->dumpdir);
   memset (st, 0, sizeof (*st));
 }
This page took 0.033024 seconds and 4 git commands to generate.