mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-23 23:59:22 +00:00
2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
Fix GNU/Hurd grub-install crash. * util/grub-probe.c (probe): Try to access `path' only when it is not NULL.
This commit is contained in:
1 parent
2f857f9813
commit
dc9837ea5f
2 files changed
+9
No files matched your search
@@ -1,3 +1,9 @@
|
|||||||
|
2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
|
||||||
|
|
||||||
|
Fix GNU/Hurd grub-install crash.
|
||||||
|
* util/grub-probe.c (probe): Try to access `path' only when it is not
|
||||||
|
NULL.
|
||||||
|
|
||||||
2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
|
2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
Correct module naming.
|
Correct module naming.
|
||||||
|
|||||||
@@ -237,6 +237,8 @@ probe (const char *path, char *device_name)
|
|||||||
grub_util_error ("%s", grub_errmsg);
|
grub_util_error ("%s", grub_errmsg);
|
||||||
|
|
||||||
if (print == PRINT_FS)
|
if (print == PRINT_FS)
|
||||||
|
{
|
||||||
|
if (path)
|
||||||
{
|
{
|
||||||
struct stat st;
|
struct stat st;
|
||||||
|
|
||||||
@@ -266,6 +268,7 @@ probe (const char *path, char *device_name)
|
|||||||
if (memcmp (filebuf_via_grub, filebuf_via_sys, file->size))
|
if (memcmp (filebuf_via_grub, filebuf_via_sys, file->size))
|
||||||
grub_util_error ("files differ");
|
grub_util_error ("files differ");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
printf ("%s\n", fs->name);
|
printf ("%s\n", fs->name);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user