Package: hurd
Version: N/A
Severity: normal
Hi,
"/hurd/ext2fs /dev/hd2s6" segfaults, because libdiskfs/init-main.c doesn't
check correctly for the bootstrap point.
The below patch corrects this problem.
Thanks,
Marcus
diff -ru /mnt/marcus/gnu/cvs/hurd/libdiskfs/ChangeLog libdiskfs/ChangeLog
--- /mnt/marcus/gnu/cvs/hurd/libdiskfs/ChangeLog Sat Mar 18 19:37:13 2000
+++ libdiskfs/ChangeLog Sat Apr 29 16:21:36 2000
@@ -1,3 +1,8 @@
+2000-04-29 Marcus Brinkmann <[EMAIL PROTECTED]>
+
+ * init-main.c (diskfs_init_main): Dereference BOOTSTRAP before
+ checking for MACH_PORT_NULL.
+
2000-03-17 Roland McGrath <[EMAIL PROTECTED]>
* file-exec.c (diskfs_S_file_exec): Fix typo and braino in last change.
diff -ru /mnt/marcus/gnu/cvs/hurd/libdiskfs/init-main.c libdiskfs/init-main.c
--- /mnt/marcus/gnu/cvs/hurd/libdiskfs/init-main.c Sun Jan 24 03:41:57 1999
+++ libdiskfs/init-main.c Sat Apr 29 16:20:40 2000
@@ -54,7 +54,7 @@
else
{
task_get_bootstrap_port (mach_task_self (), bootstrap);
- if (bootstrap == MACH_PORT_NULL)
+ if (*bootstrap == MACH_PORT_NULL)
error (2, 0, "Must be started as a translator");
}
-- System Information
Debian Release: woody
Kernel Version: Linux ulysses 2.2.12 #7 Mon Sep 27 01:09:52 CEST 1999 i586 unknown