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:
Samuel Thibault 2009-11-29 12:40:32 +01:00
parent 2f857f9813
commit dc9837ea5f
2 changed files with 30 additions and 21 deletions

View file

@ -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>
Correct module naming.

View file

@ -237,6 +237,8 @@ probe (const char *path, char *device_name)
grub_util_error ("%s", grub_errmsg);
if (print == PRINT_FS)
{
if (path)
{
struct stat st;
@ -266,6 +268,7 @@ probe (const char *path, char *device_name)
if (memcmp (filebuf_via_grub, filebuf_via_sys, file->size))
grub_util_error ("files differ");
}
}
printf ("%s\n", fs->name);
}