Skip to content

Commit

Permalink
* sysdeps/unix/sysv/linux/fxstatat.c [STAT_IS_KERNEL_STAT]
Browse files Browse the repository at this point in the history
	(__fxstatat): Correct handling of invalid vers values.
  • Loading branch information
Ulrich Drepper committed Jan 19, 2006
1 parent 01715b0 commit 536d1a8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
10 changes: 6 additions & 4 deletions sysdeps/unix/sysv/linux/fxstatat.c
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 536d1a8

Please sign in to comment.