From: Yann Sionneau ysionneau@kalray.eu
Add missing return value statement to fstat for the statx wrapping case.
Signed-off-by: Yann Sionneau ysionneau@kalray.eu
--- libc/sysdeps/linux/common/fstat.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/libc/sysdeps/linux/common/fstat.c b/libc/sysdeps/linux/common/fstat.c index 0b2798ad4..86c24bff6 100644 --- a/libc/sysdeps/linux/common/fstat.c +++ b/libc/sysdeps/linux/common/fstat.c @@ -40,6 +40,8 @@ int fstat(int fd, struct stat *buf) STATX_BASIC_STATS, &tmp); if (rc == 0) __cp_stat_statx ((struct stat *)buf, &tmp); + + return rc; } libc_hidden_def(fstat)