X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Fcompare.c;h=d0cf5f7d6c04963bc96928ab0c975b32d87b7af3;hb=3b74fbfc3bfecb540cfcdb996ee8de62e6278639;hp=2163a29421770af2b50918d4a0f22fdf802b4676;hpb=445d95be07e497f6b1e3c94d20c5a80cfbf23af5;p=chaz%2Ftar diff --git a/src/compare.c b/src/compare.c index 2163a29..d0cf5f7 100644 --- a/src/compare.c +++ b/src/compare.c @@ -7,7 +7,7 @@ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2, or (at your option) any later + Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, but @@ -368,9 +368,9 @@ diff_dumpdir (void) { char *dumpdir_buffer; dev_t dev = 0; - struct stat stat; + struct stat stat_data; - if (deref_stat (true, current_stat_info.file_name, &stat)) + if (deref_stat (true, current_stat_info.file_name, &stat_data)) { if (errno == ENOENT) stat_warn (current_stat_info.file_name); @@ -378,7 +378,7 @@ diff_dumpdir (void) stat_error (current_stat_info.file_name); } else - dev = stat.st_dev; + dev = stat_data.st_dev; dumpdir_buffer = get_directory_contents (current_stat_info.file_name, dev); @@ -602,7 +602,6 @@ verify_volume (void) diff_archive (); tar_stat_destroy (¤t_stat_info); - xheader_destroy (&extended_header); } access_mode = ACCESS_WRITE;