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 committed 2009-11-29 12:40:32 +01:00
1 parent 2f857f9813
commit dc9837ea5f
2 files changed
+9

No files matched your search

+6
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> 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
Correct module naming. Correct module naming.
+3
View File
@@ -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);
} }