From patchwork Tue Jan 22 21:49:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 1029549 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-99500-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ens-lyon.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="Uxcy38bE"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43khsX5TKCz9s3q for ; Wed, 23 Jan 2019 08:49:51 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; q=dns; s=default; b=Yq7 OsidAXnCEANorubfnSVKr1Ki92sH4LUabI06B49VWhJxeTeQUgmGsbfEzUxWBqr/ j/+gYBg31QLhbUeCpj7mmqGQ2On2L+nCJcBJOcbzF4GNtMD9eVwWvbU6fK1Nd4DW cQhUu5/Ul44+yXhH8UupglKU7URV0sfKu6r/7BgY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; s=default; bh=vdWe1fihV zZlGKWqBeVtKLL/jzk=; b=Uxcy38bEFo6Rpm6KyHSQehGoCFYzGT3khR433zABM we/UJGYCjSrr7Pg6UjBUFLgDH3EcuftEmbSGKN16p4I8X7IV9WHYvbdLSFKxBkxs azbYEOdmnyS9YKB24RjK1hyiaVXQhr+T/HnQvrKrJY/xhel1zOqViw51b+vp0YU6 Ws= Received: (qmail 79471 invoked by alias); 22 Jan 2019 21:49:46 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 79334 invoked by uid 89); 22 Jan 2019 21:49:37 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_NEUTRAL autolearn=ham version=3.3.2 spammy=HContent-Transfer-Encoding:8bit X-HELO: hera.aquilenet.fr From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault , commit-hurd@gnu.org Subject: [hurd,commited] hurd: Check at_flags passed to faccessat Date: Tue, 22 Jan 2019 22:49:29 +0100 Message-Id: <20190122214929.15564-1-samuel.thibault@ens-lyon.org> MIME-Version: 1.0 * 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 + + * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors + returned by __hurd_at_flags. + 2019-01-21 Joseph Myers * 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) {