From 6a61354ea0dd97af5c87643e9bf5dfd2a31f2cea Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 24 Apr 2012 22:05:43 -0700 Subject: [PATCH] * src/compare.c (diff_dumpdir): Omit useless 'stat'. --- src/compare.c | 9 --------- 1 file changed, 9 deletions(-) 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) { -- 2.45.2