aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-01-19 06:18:04 +0000
committerUlrich Drepper <drepper@redhat.com>2006-01-19 06:18:04 +0000
commit536d1a8d50074cf54da2a1f28caa93e62f041983 (patch)
tree96966613dc1f16d3614578b95db843e61cbcd027
parent01715b0337fb0a0d94eb605d93c5e91e116179b5 (diff)
downloadglibc-536d1a8d50074cf54da2a1f28caa93e62f041983.zip
glibc-536d1a8d50074cf54da2a1f28caa93e62f041983.tar.gz
glibc-536d1a8d50074cf54da2a1f28caa93e62f041983.tar.bz2
* sysdeps/unix/sysv/linux/fxstatat.c [STAT_IS_KERNEL_STAT]
(__fxstatat): Correct handling of invalid vers values.
-rw-r--r--ChangeLog3
-rw-r--r--sysdeps/unix/sysv/linux/fxstatat.c10
2 files changed, 9 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 286c127..53225a3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2006-01-18 Ulrich Drepper <drepper@redhat.com>
+ * sysdeps/unix/sysv/linux/fxstatat.c [STAT_IS_KERNEL_STAT]
+ (__fxstatat): Correct handling of invalid vers values.
+
[BZ #2173]
* libio/fileops.c (_IO_new_file_fopen): If ,ccs= is given, also
set vtable to the wide vtable.
diff --git a/sysdeps/unix/sysv/linux/fxstatat.c b/sysdeps/unix/sysv/linux/fxstatat.c
index 9bc3dbc..c73037b 100644
--- a/sysdeps/unix/sysv/linux/fxstatat.c
+++ b/sysdeps/unix/sysv/linux/fxstatat.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2005 Free Software Foundation, Inc.
+/* Copyright (C) 2005, 2006 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -78,10 +78,12 @@ __fxstatat (int vers, int fd, const char *file, struct stat *st, int flag)
if (__builtin_expect (!INTERNAL_SYSCALL_ERROR_P (result, err), 1))
return result;
}
-
#ifdef STAT_IS_KERNEL_STAT
- __set_errno (EINVAL);
- return -1;
+ else
+ {
+ __set_errno (EINVAL);
+ return -1;
+ }
#else
struct kernel_stat kst;