Message ID | 20230417225857.2006561-4-bugaevc@gmail.com |
---|---|
State | New |
Headers | show
Return-Path: <libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=<UNKNOWN>) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=FP9U3TTh; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Q0jF51mSFz1ybC for <incoming@patchwork.ozlabs.org>; Tue, 18 Apr 2023 09:00:09 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2FBF638560B9 for <incoming@patchwork.ozlabs.org>; Mon, 17 Apr 2023 23:00:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2FBF638560B9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1681772407; bh=P2F0lLd3uq0EVIYYJXfnpMg84G+R92nUkkBKFKIsi5I=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=FP9U3TThUW4gPxbzjx8YapMHcAlhaEHNxdPqORzJ3ew3XeS2mvim1AEwpAbuI99eD /7eTHDZPR4vndQDgSmADTJs644TCaOTq4jy5K+v8Fj8gqS/nPasKRovcu037iBSOp4 0qk9VkFputalRS2BghZRMHJ1uYdI8+3wzwHl5iNA= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by sourceware.org (Postfix) with ESMTPS id C34413858C2D for <libc-alpha@sourceware.org>; Mon, 17 Apr 2023 22:59:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C34413858C2D Received: by mail-lj1-x230.google.com with SMTP id by8so28054611ljb.13 for <libc-alpha@sourceware.org>; Mon, 17 Apr 2023 15:59:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681772348; x=1684364348; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=P2F0lLd3uq0EVIYYJXfnpMg84G+R92nUkkBKFKIsi5I=; b=Ks3oFl1+SI6iNV62V1UBoT6iHzurrXX3YDe8O6lOgInr/cBxIK4mmcCJZNd0EFDQsh 1g4fgPndnsmj8+cYf1hnc954kw4q/lFy0VcDDt7DezFKVV442AHcam4QYxRuD4LJpSDG O4XA8tkb83y4AG7ahli9HP/30BZfCfuK4H5F0c6FizxM7hU/ultzlh6/tOCe6tHWPXtl TzfttkA69lOsL989CTyHArDG61nyiZOU3jNgjAFQLTbjrACFiXIV6PEbzliDflqx2w6G wCPADQDG/M1aaeQ9ojIytOCgC5Q8dHCgcjbmPdRTOAV3k3rDlNfGNrqkuFu5VCTqr0Au FUiw== X-Gm-Message-State: AAQBX9eaNcF3p/6+cRF6CKY2z05GRXBYU7ys6zjv5/5CjvLmxrxgomuX 0ku3DpoPy8XwHnzRs0FooEVmdnh/MvPSrQ== X-Google-Smtp-Source: AKy350Zjb636pAH9H36F3QA3qaZ+ZDABt5dfDESlW71x9BPa4d/XXdyAALP4f0ypzJuLKH2+RzccOg== X-Received: by 2002:a2e:904c:0:b0:2a8:ddb0:baa6 with SMTP id n12-20020a2e904c000000b002a8ddb0baa6mr22501ljg.4.1681772348028; Mon, 17 Apr 2023 15:59:08 -0700 (PDT) Received: from surface-pro-6.. ([2a00:1370:818c:4a57:d907:80f6:db70:646a]) by smtp.gmail.com with ESMTPSA id f7-20020a2ea0c7000000b002a8b5310642sm1463539ljm.5.2023.04.17.15.59.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Apr 2023 15:59:07 -0700 (PDT) To: libc-alpha@sourceware.org, bug-hurd@gnu.org Cc: Samuel Thibault <samuel.thibault@gnu.org>, Sergey Bugaev <bugaevc@gmail.com> Subject: [RFC PATCH 3/5] hurd: Make dl-sysdep's open () cope with O_IGNORE_CTTY Date: Tue, 18 Apr 2023 01:58:55 +0300 Message-Id: <20230417225857.2006561-4-bugaevc@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230417225857.2006561-1-bugaevc@gmail.com> References: <20230417225857.2006561-1-bugaevc@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list <libc-alpha.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=subscribe> From: Sergey Bugaev via Libc-alpha <libc-alpha@sourceware.org> Reply-To: Sergey Bugaev <bugaevc@gmail.com> Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Sender: "Libc-alpha" <libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org> |
Series |
O_IGNORE_CTTY everywhere
|
expand
|
diff --git a/sysdeps/mach/hurd/dl-sysdep.c b/sysdeps/mach/hurd/dl-sysdep.c index 2d595d00..6e167e12 100644 --- a/sysdeps/mach/hurd/dl-sysdep.c +++ b/sysdeps/mach/hurd/dl-sysdep.c @@ -289,8 +289,8 @@ open_file (const char *file_name, int flags, return MACH_PORT_NULL; } - assert (!(flags & ~(O_READ | O_EXEC | O_CLOEXEC))); - flags &= ~O_CLOEXEC; + assert (!(flags & ~(O_READ | O_EXEC | O_CLOEXEC | O_IGNORE_CTTY))); + flags &= ~(O_CLOEXEC | O_IGNORE_CTTY); startdir = _dl_hurd_data->portarray[file_name[0] == '/' ? INIT_PORT_CRDIR : INIT_PORT_CWDIR];
Signed-off-by: Sergey Bugaev <bugaevc@gmail.com> --- sysdeps/mach/hurd/dl-sysdep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)