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;