diff options
author | Yann Sionneau <ysionneau@kalray.eu> | 2023-09-14 16:29:39 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2023-09-14 16:46:52 +0200 |
commit | dd21bfd5a7fc87e6dd163745ce15ac2b77439428 (patch) | |
tree | 7f54a4dd75dfb6e46df85e14a8a4a2767a43a280 /libc/sysdeps/linux/common | |
parent | 3daf0d3bf73b61acde095faa18979cff2da0017e (diff) |
fstat: add missing return value statement for the statx wrapping case
Add missing return value statement to fstat for the statx wrapping case.
Signed-off-by: Yann Sionneau <ysionneau@kalray.eu>
Diffstat (limited to 'libc/sysdeps/linux/common')
-rw-r--r-- | libc/sysdeps/linux/common/fstat.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) |