summaryrefslogtreecommitdiff
path: root/libdiskfs/boot-start.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-11-02 22:50:14 +0000
committerMiles Bader <miles@gnu.org>1995-11-02 22:50:14 +0000
commit4ad28eb5f5e279c9af5f9965e0788de89ea2fa66 (patch)
tree7a4ca11f3bcdd2a371ff3367fef59075ca1fc666 /libdiskfs/boot-start.c
parenta219eea121d1a63a3398f060577a979b952c684b (diff)
(diskfs_execboot_fsys_startup): Add FLAGS arg; use.
Diffstat (limited to 'libdiskfs/boot-start.c')
-rw-r--r--libdiskfs/boot-start.c9
1 files changed, 4 insertions, 5 deletions
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');