306,7 → 306,7 |
} |
|
/* Check the offered options size. */ |
if (size < 0 || size > MAX_MNTOPTS_LEN) { |
if (size > MAX_MNTOPTS_LEN) { |
ipc_answer_0(callid, EINVAL); |
ipc_answer_0(rid, EINVAL); |
free(mp); |
448,6 → 448,9 |
int mode = IPC_GET_ARG3(*request); |
size_t len; |
|
/* Ignore mode for now. */ |
(void) mode; |
|
/* |
* Make sure that we are called with exactly one of L_FILE and |
* L_DIRECTORY. Make sure that the user does not pass L_OPEN. |
1053,6 → 1056,9 |
} |
path[len] = '\0'; |
|
/* Ignore mode for now. */ |
(void) mode; |
|
fibril_rwlock_write_lock(&namespace_rwlock); |
int lflag = L_DIRECTORY | L_CREATE | L_EXCLUSIVE; |
rc = vfs_lookup_internal(path, lflag, NULL, NULL); |