mirror of git://sourceware.org/git/glibc.git
Hurd: Fix file_name_lookup_at error case return value.
(cherry picked from commit 67481400c5)
This commit is contained in:
parent
59d5bd49df
commit
49c6fd1ff2
|
|
@ -1,3 +1,7 @@
|
|||
2010-04-24 Emilio Pozuelo Monfort <pochu27@gmail.com>
|
||||
|
||||
* hurd/lookup-at.c (__file_name_lookup_at): Fix error return value.
|
||||
|
||||
2010-04-14 Andreas Schwab <schwab@redhat.com>
|
||||
|
||||
* elf/dl-version.c (_dl_check_map_versions): Avoid index overflow
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/* Lookup helper function for Hurd implementation of *at functions.
|
||||
Copyright (C) 2006 Free Software Foundation, Inc.
|
||||
Copyright (C) 2006,2010 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
|
||||
|
|
@ -33,7 +33,7 @@ __file_name_lookup_at (int fd, int at_flags,
|
|||
flags |= (at_flags & AT_SYMLINK_NOFOLLOW) ? O_NOLINK : 0;
|
||||
at_flags &= ~AT_SYMLINK_NOFOLLOW;
|
||||
if (at_flags != 0)
|
||||
return __hurd_fail (EINVAL);
|
||||
return (__hurd_fail (EINVAL), MACH_PORT_NULL);
|
||||
|
||||
if (fd == AT_FDCWD || file_name[0] == '/')
|
||||
return __file_name_lookup (file_name, flags, mode);
|
||||
|
|
|
|||
Loading…
Reference in New Issue