]> Dogcows Code - chaz/tar/blobdiff - src/incremen.c
Fix interaction between --listed-incremental and -C
[chaz/tar] / src / incremen.c
index 02cae38a7177a630baeb4806c2706d9708d1d1f1..bb2ba2fe18dc76d688311fa81a2ca64ea9cfaf1d 100644 (file)
@@ -1324,6 +1324,13 @@ read_directory_file (void)
       return;
     }
 
+  /* Consume the first name from the name list and reset the
+     list afterwards.  This is done to change to the new
+     directory, if the first name is a chdir request (-C dir),
+     which is necessary to recreate absolute file names. */
+  name_from_list ();
+  blank_name_list ();
+  
   if (0 < getline (&buf, &bufsize, listed_incremental_stream))
     {
       char *ebuf;
This page took 0.024818 seconds and 4 git commands to generate.