From: Vladimir 'phcoder' Serbinenko Date: Fri, 25 May 2012 15:57:25 +0000 (+0200) Subject: * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file. X-Git-Tag: 2.00~181 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=d6b1fd3654a29286e919f61a73907e26c22bf80e;p=thirdparty%2Fgrub.git * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file. --- 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;