mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-23 15:49:23 +00:00
* util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
This commit is contained in:
1 parent
0a9aa0f6e1
commit
d6b1fd3654
2 files changed
+5
-1
No files matched your search
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user