about summary refs log tree commit diff
path: root/sysdeps/mach
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2019-01-22 22:47:10 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2019-01-22 22:47:10 +0100
commita95dc01c9e55bef6b48a762e26f15d93100ab9e5 (patch)
treee1a308dccb036c6c936d923de76ae44f30dff7c1 /sysdeps/mach
parent712f1167b481788ae11988c873c1bb1a5661b5d6 (diff)
downloadglibc-a95dc01c9e55bef6b48a762e26f15d93100ab9e5.tar.gz
glibc-a95dc01c9e55bef6b48a762e26f15d93100ab9e5.tar.xz
glibc-a95dc01c9e55bef6b48a762e26f15d93100ab9e5.zip
hurd: Check at_flags passed to faccessat
	* sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
	returned by __hurd_at_flags.
Diffstat (limited to 'sysdeps/mach')
-rw-r--r--sysdeps/mach/hurd/faccessat.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sysdeps/mach/hurd/faccessat.c b/sysdeps/mach/hurd/faccessat.c
index 7a5bf47bb2..7e8c144b80 100644
--- a/sysdeps/mach/hurd/faccessat.c
+++ b/sysdeps/mach/hurd/faccessat.c
@@ -60,7 +60,9 @@ __faccessat_common (int fd, const char *file, int type, int at_flags,
          usual effective permissions.  */
 
       int hurd_flags = 0;
-      __hurd_at_flags (&at_flags, &hurd_flags);
+      err = __hurd_at_flags (&at_flags, &hurd_flags);
+      if (err)
+	return errfunc (err);
 
       error_t reauthenticate_cwdir_at (file_t *result)
 	{