Browse Source
Merge pull request #222 from zeldin/stat-struct-format
Remove use of copy_stat() from sys_fstatat
pull/224/head
Andrew Waterman
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
pk/syscall.c
|
|
|
@ -226,7 +226,7 @@ long sys_fstatat(int dirfd, const char* name, void* st, int flags) |
|
|
|
struct frontend_stat buf; |
|
|
|
size_t name_size = strlen(name)+1; |
|
|
|
long ret = frontend_syscall(SYS_fstatat, kfd, va2pa(name), name_size, va2pa(&buf), flags, 0, 0); |
|
|
|
copy_stat(st, &buf); |
|
|
|
memcpy(st, &buf, sizeof(buf)); |
|
|
|
return ret; |
|
|
|
} |
|
|
|
return -EBADF; |
|
|
|
|