sysdeps/linux: temporary band-aid for lack of mode argument in sys_open
This commit is contained in:
parent
e17598aefb
commit
4c5ee60f67
|
@ -51,7 +51,8 @@ int sys_anon_free(void *pointer, size_t size) {
|
|||
}
|
||||
|
||||
int sys_open(const char *path, int flags, int *fd) {
|
||||
auto ret = do_syscall(NR_open, path, flags, 0);
|
||||
// TODO: pass mode in sys_open() sysdep
|
||||
auto ret = do_syscall(NR_open, path, flags, 0666);
|
||||
if(int e = sc_error(ret); e)
|
||||
return e;
|
||||
*fd = sc_int_result<int>(ret);
|
||||
|
|
Loading…
Reference in a new issue