* util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
This commit is contained in:
parent
0a9aa0f6e1
commit
d6b1fd3654
2 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue