summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2000-05-14 19:46:04 +0000
committerMarcus Brinkmann <marcus@gnu.org>2000-05-14 19:46:04 +0000
commitbe15ddb8f111be6e9ad0049e586005366e144a04 (patch)
treed9ef95d12d4337bda4afc8d744f98c1ba76533a4
parentf6acccd32efea5d3578b5a9c6bac24ebf60ec163 (diff)
2000-04-29 Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>
* init-main.c (diskfs_init_main): Dereference BOOTSTRAP before checking for MACH_PORT_NULL.
-rw-r--r--libdiskfs/ChangeLog5
-rw-r--r--libdiskfs/init-main.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/libdiskfs/ChangeLog b/libdiskfs/ChangeLog
index 851d293d..5833e680 100644
--- a/libdiskfs/ChangeLog
+++ b/libdiskfs/ChangeLog
@@ -1,3 +1,8 @@
+2000-04-29 Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>
+
+ * init-main.c (diskfs_init_main): Dereference BOOTSTRAP before
+ checking for MACH_PORT_NULL.
+
2000-03-17 Roland McGrath <roland@baalperazim.frob.com>
* file-exec.c (diskfs_S_file_exec): Fix typo and braino in last change.
diff --git a/libdiskfs/init-main.c b/libdiskfs/init-main.c
index a9680dd7..09c2b680 100644
--- a/libdiskfs/init-main.c
+++ b/libdiskfs/init-main.c
@@ -54,7 +54,7 @@ diskfs_init_main (struct argp *startup_argp,
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");
}