Selaa lähdekoodia

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 vuotta sitten
vanhempi
commit
dd21bfd5a7
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  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)