diff options
Diffstat (limited to 'libdiskfs')
-rw-r--r-- | libdiskfs/file-exec.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libdiskfs/file-exec.c b/libdiskfs/file-exec.c index 78f7f504..853170ff 100644 --- a/libdiskfs/file-exec.c +++ b/libdiskfs/file-exec.c @@ -49,6 +49,11 @@ diskfs_S_file_exec (struct protid *cred, if (!cred) return EOPNOTSUPP; + + if (diskfs_exec == MACH_PORT_NULL) + diskfs_exec = path_name_lookup (_SERVERS_EXEC, 0); + if (diskfs_exec == MACH_PORT_NULL) + return EOPNOTSUPP; np = cred->po->np; if ((cred->po->openstat & O_EXEC) == 0) |