unofficial mirror of libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [hurd,commited] hurd: Check at_flags passed to faccessat
@ 2019-01-22 21:49 Samuel Thibault
  0 siblings, 0 replies; only message in thread
From: Samuel Thibault @ 2019-01-22 21:49 UTC (permalink / raw)
  To: libc-alpha; +Cc: Samuel Thibault, commit-hurd

	* sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
	returned by __hurd_at_flags.
---
 ChangeLog                     | 5 +++++
 sysdeps/mach/hurd/faccessat.c | 4 +++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index c4fc9ab22a..8bffe5035b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2019-01-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
+
+	* sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
+	returned by __hurd_at_flags.
+
 2019-01-21  Joseph Myers  <joseph@codesourcery.com>
 
 	* scripts/build-many-glibcs.py (Context.checkout): Default
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)
 	{
-- 
2.20.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-01-22 21:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-22 21:49 [hurd,commited] hurd: Check at_flags passed to faccessat Samuel Thibault

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).