From: Yann Sionneau <[email protected]>

Add missing return value statement to fstat for the statx wrapping case.

Signed-off-by: Yann Sionneau <[email protected]>

---
 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)
 
-- 
2.42.0

_______________________________________________
devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to