]> Dogcows Code - chaz/tar/commitdiff
(diff_dumpdir): Pass a valid device number to get_directory_contents.
authorSergey Poznyakoff <gray@gnu.org.ua>
Fri, 28 Oct 2005 09:28:20 +0000 (09:28 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Fri, 28 Oct 2005 09:28:20 +0000 (09:28 +0000)
src/compare.c

index 02240aa3bf953797e926ce920e181b1e888b8b4b..70d72513aaef6ea80e0e35ae99ba2002758f4e5c 100644 (file)
@@ -356,8 +356,21 @@ diff_special (void)
 static void
 diff_dumpdir (void)
 {
-  char *dumpdir_buffer = get_directory_contents (current_stat_info.file_name,
-                                                0);
+  char *dumpdir_buffer;
+  dev_t dev = 0;
+  struct stat stat;
+
+  if (deref_stat (true, current_stat_info.file_name, &stat))
+    {
+      if (errno == ENOENT)
+       stat_warn (current_stat_info.file_name);
+      else
+       stat_error (current_stat_info.file_name);
+    }
+  else
+    dev = stat.st_dev;
+      
+  dumpdir_buffer = get_directory_contents (current_stat_info.file_name, dev);
 
   if (multi_volume_option)
     {
This page took 0.027909 seconds and 4 git commands to generate.