mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-23 07:39:22 +00:00
* util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
and so on.
This commit is contained in:
1 parent
9d34bb85da
commit
5700603549
2 files changed
+7
-1
No files matched your search
+2
-1
@@ -284,7 +284,8 @@ cmd_cmp (char *src, char *dest)
|
||||
*ptr++ = '/';
|
||||
strcpy (ptr, entry->d_name);
|
||||
|
||||
if (lstat (dest, &st) == -1 || S_ISLNK (st.st_mode))
|
||||
if (lstat (dest, &st) == -1 || (!S_ISREG (st.st_mode)
|
||||
&& !S_ISDIR (st.st_mode)))
|
||||
continue;
|
||||
|
||||
cmd_cmp (srcnew, destnew);
|
||||
|
||||
Reference in new issue
Block a user