From 751709fec943a853c2543eb6f7995cae723f7b78 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Thu, 22 Oct 2015 14:38:52 +0200 Subject: Always use INTERNAL_SYSCALL_ERRNO with INTERNAL_SYSCALL --- sysdeps/unix/sysv/linux/i386/xstat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sysdeps/unix/sysv/linux/i386/xstat.c') diff --git a/sysdeps/unix/sysv/linux/i386/xstat.c b/sysdeps/unix/sysv/linux/i386/xstat.c index c588f4a8f2..f179898751 100644 --- a/sysdeps/unix/sysv/linux/i386/xstat.c +++ b/sysdeps/unix/sysv/linux/i386/xstat.c @@ -46,7 +46,8 @@ __xstat (int vers, const char *name, struct stat *buf) INTERNAL_SYSCALL_DECL (err); result = INTERNAL_SYSCALL (stat64, err, 2, name, &buf64); if (__glibc_unlikely (INTERNAL_SYSCALL_ERROR_P (result, err))) - return INLINE_SYSCALL_ERROR_RETURN_VALUE (-result); + return INLINE_SYSCALL_ERROR_RETURN_VALUE (INTERNAL_SYSCALL_ERRNO (result, + err)); else return __xstat32_conv (vers, &buf64, buf); } -- cgit 1.4.1