From: Paul Eggert Date: Wed, 25 Apr 2012 05:05:43 +0000 (-0700) Subject: * src/compare.c (diff_dumpdir): Omit useless 'stat'. X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=6a61354ea0dd97af5c87643e9bf5dfd2a31f2cea;p=chaz%2Ftar * src/compare.c (diff_dumpdir): Omit useless 'stat'. --- diff --git a/src/compare.c b/src/compare.c index ea41cb3..7c514b9 100644 --- a/src/compare.c +++ b/src/compare.c @@ -362,15 +362,6 @@ static void diff_dumpdir (struct tar_stat_info *dir) { const char *dumpdir_buffer; - struct stat stat_data; - - if (deref_stat (dir->file_name, &stat_data) != 0) - { - if (errno == ENOENT) - stat_warn (dir->file_name); - else - stat_error (dir->file_name); - } if (dir->fd == 0) {