diff options
Diffstat (limited to 'src/stat/lstat.c')
-rw-r--r-- | src/stat/lstat.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/stat/lstat.c b/src/stat/lstat.c index 5b89f290..8b365ba2 100644 --- a/src/stat/lstat.c +++ b/src/stat/lstat.c @@ -4,11 +4,7 @@ int lstat(const char *restrict path, struct stat *restrict buf) { -#ifdef SYS_lstat - return syscall(SYS_lstat, path, buf); -#else - return syscall(SYS_fstatat, AT_FDCWD, path, buf, AT_SYMLINK_NOFOLLOW); -#endif + return fstatat(AT_FDCWD, path, buf, AT_SYMLINK_NOFOLLOW); } weak_alias(lstat, lstat64); |