diff mbox series

[uclibc-ng-devel,2/4] fstat: add missing return value statement for the statx wrapping case

Message ID 20230914142941.25389-2-yann@sionneau.net
State Accepted
Headers show
Series [uclibc-ng-devel,1/4] fstatat64: define it as a wrapper of statx if the kernel does not support fstatat64 syscall | expand

Commit Message

Yann Sionneau Sept. 14, 2023, 2:29 p.m. UTC
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 mbox series

Patch

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)