Fixed syscall for sys_open (__NR_close to __NR_open)

This commit is contained in:
g1n 2021-12-27 20:39:38 +02:00
parent a9f58fc92a
commit e00f813ee2
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ void sys_exit(int status) {
}
int sys_open(const char *pathname, int flags) {
return syscall(__NR_close, pathname, flags);
return syscall(__NR_open, pathname, flags);
}
int sys_close(int fd) {