From 4ad28eb5f5e279c9af5f9965e0788de89ea2fa66 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Thu, 2 Nov 1995 22:50:14 +0000 Subject: (diskfs_execboot_fsys_startup): Add FLAGS arg; use. --- libdiskfs/boot-start.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'libdiskfs/boot-start.c') diff --git a/libdiskfs/boot-start.c b/libdiskfs/boot-start.c index 8cbf67fe..b94fcf71 100644 --- a/libdiskfs/boot-start.c +++ b/libdiskfs/boot-start.c @@ -272,7 +272,7 @@ diskfs_S_exec_startup (mach_port_t port, /* Called by S_fsys_startup for execserver bootstrap. The execserver is able to function without a real node, hence this fraud. */ error_t -diskfs_execboot_fsys_startup (mach_port_t port, +diskfs_execboot_fsys_startup (mach_port_t port, int flags, mach_port_t ctl, mach_port_t *real, mach_msg_type_name_t *realpoly) @@ -288,8 +288,7 @@ diskfs_execboot_fsys_startup (mach_port_t port, diskfs_execboot_class))) return EOPNOTSUPP; - rootpi = diskfs_make_protid (diskfs_make_peropen (diskfs_root_node, - O_READ | O_EXEC, + rootpi = diskfs_make_protid (diskfs_make_peropen (diskfs_root_node, flags, MACH_PORT_NULL), 0,0,0,0); rootport = ports_get_right (rootpi); @@ -297,8 +296,8 @@ diskfs_execboot_fsys_startup (mach_port_t port, MACH_MSG_TYPE_MAKE_SEND); ports_port_deref (rootpi); - err = dir_lookup (rootport, _SERVERS_EXEC, - O_READ|O_EXEC|O_NOTRANS, 0, &retry, pathbuf, real); + err = dir_lookup (rootport, _SERVERS_EXEC, flags|O_NOTRANS, 0, + &retry, pathbuf, real); assert_perror (err); assert (retry == FS_RETRY_NORMAL); assert (pathbuf[0] == '\0'); -- cgit v1.2.3