Browse Source

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>
Yann Sionneau 2 years ago
parent
commit
dd21bfd5a7
1 changed files with 2 additions and 0 deletions
  1. 2 0
      libc/sysdeps/linux/common/fstat.c

+ 2 - 0
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)