소스 검색

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 년 전
부모
커밋
dd21bfd5a7
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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)