* util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-05-25 17:57:25 +02:00
parent 0a9aa0f6e1
commit d6b1fd3654
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
* util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
2012-05-24 Vladimir Serbinenko <phcoder@gmail.com> 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather

View file

@ -284,7 +284,7 @@ cmd_cmp (char *src, char *dest)
*ptr++ = '/'; *ptr++ = '/';
strcpy (ptr, entry->d_name); 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))) && !S_ISDIR (st.st_mode)))
continue; continue;