diff options
author | Emilio Pozuelo Monfort <pochu27@gmail.com> | 2010-04-26 09:59:30 -0700 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 2010-04-26 09:59:30 -0700 |
commit | 67481400c51229de3efa2eb3dddc8429b6f9e9f4 (patch) | |
tree | 9525059ffa09078081259ebc44299192f66d1fb9 /hurd | |
parent | 85071980b348d002820b5ef35efc8aeb70559210 (diff) | |
download | glibc-67481400c51229de3efa2eb3dddc8429b6f9e9f4.zip glibc-67481400c51229de3efa2eb3dddc8429b6f9e9f4.tar.gz glibc-67481400c51229de3efa2eb3dddc8429b6f9e9f4.tar.bz2 |
Hurd: Fix file_name_lookup_at error case return value.
Diffstat (limited to 'hurd')
-rw-r--r-- | hurd/lookup-at.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hurd/lookup-at.c b/hurd/lookup-at.c index a2d50cb..7f55527 100644 --- a/hurd/lookup-at.c +++ b/hurd/lookup-at.c @@ -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); |