fix missing flags arg to fstatat syscall in fstat fallback path
[musl] / src / stat / fstat.c
index a928986..ab4afc0 100644 (file)
@@ -17,7 +17,7 @@ int fstat(int fd, struct stat *st)
 #ifdef SYS_stat
        return syscall(SYS_stat, buf, st);
 #else
-       return syscall(SYS_fstatat, AT_FDCWD, buf, st);
+       return syscall(SYS_fstatat, AT_FDCWD, buf, st, 0);
 #endif
 }