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): 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
@@ -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 Matthew Garrett <mjg@redhat.com>
|
||||||
2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
|
2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
|||||||
+2
-1
@@ -284,7 +284,8 @@ cmd_cmp (char *src, char *dest)
|
|||||||
*ptr++ = '/';
|
*ptr++ = '/';
|
||||||
strcpy (ptr, entry->d_name);
|
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;
|
continue;
|
||||||
|
|
||||||
cmd_cmp (srcnew, destnew);
|
cmd_cmp (srcnew, destnew);
|
||||||
|
|||||||
Reference in new issue
Block a user