From d6b1fd3654a29286e919f61a73907e26c22bf80e Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Fri, 25 May 2012 17:57:25 +0200 Subject: [PATCH] * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file. --- ChangeLog | 4 ++++ util/grub-fstest.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e2143724a..c55fa79c5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2012-05-25 Vladimir Serbinenko + + * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file. + 2012-05-24 Vladimir Serbinenko * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather diff --git a/util/grub-fstest.c b/util/grub-fstest.c index 10fb61c30..5cf82a968 100644 --- a/util/grub-fstest.c +++ b/util/grub-fstest.c @@ -284,7 +284,7 @@ cmd_cmp (char *src, char *dest) *ptr++ = '/'; strcpy (ptr, entry->d_name); - if (lstat (dest, &st) == -1 || (!S_ISREG (st.st_mode) + if (lstat (destnew, &st) == -1 || (!S_ISREG (st.st_mode) && !S_ISDIR (st.st_mode))) continue;