MaxXing
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
1 deletions
-
pk/syscall.c
|
|
|
@ -129,7 +129,9 @@ static int at_kfd(int dirfd) |
|
|
|
file_t* dir = file_get(dirfd); |
|
|
|
if (dir == NULL) |
|
|
|
return -1; |
|
|
|
return dir->kfd; |
|
|
|
int kfd = dir->kfd; |
|
|
|
file_decref(dir); |
|
|
|
return kfd; |
|
|
|
} |
|
|
|
|
|
|
|
int sys_openat(int dirfd, const char* name, int flags, int mode) |
|
|
|
|