* util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
and so on.
This commit is contained in:
parent
9d34bb85da
commit
5700603549
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
|
||||
and so on.
|
||||
|
||||
2012-05-03 Matthew Garrett <mjg@redhat.com>
|
||||
2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue