sysdeps/linux: temporary band-aid for lack of mode argument in sys_open

This commit is contained in:
Geert Custers 2020-02-06 21:58:05 +01:00
parent e17598aefb
commit 4c5ee60f67

View file

@ -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);