1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00

* sysdeps/unix/sysv/linux/fxstatat.c [STAT_IS_KERNEL_STAT]

(__fxstatat): Correct handling of invalid vers values.
This commit is contained in:
Ulrich Drepper
2006-01-19 06:18:04 +00:00
parent 01715b0337
commit 536d1a8d50
2 changed files with 9 additions and 4 deletions

View File

@ -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;