From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sonata.ens-lyon.org (domu-toccata.ens-lyon.fr [140.77.166.138]) by sourceware.org (Postfix) with ESMTPS id 642593858D28 for ; Mon, 18 Apr 2022 15:55:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 642593858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=ens-lyon.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=bounce.ens-lyon.org Received: from localhost (localhost [127.0.0.1]) by sonata.ens-lyon.org (Postfix) with ESMTP id 3650C20146; Mon, 18 Apr 2022 17:55:42 +0200 (CEST) Received: from sonata.ens-lyon.org ([127.0.0.1]) by localhost (sonata.ens-lyon.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WIsUI0tGXYsK; Mon, 18 Apr 2022 17:55:42 +0200 (CEST) Received: from begin (lfbn-bor-1-255-114.w90-50.abo.wanadoo.fr [90.50.98.114]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by sonata.ens-lyon.org (Postfix) with ESMTPSA id 0CFE420134; Mon, 18 Apr 2022 17:55:41 +0200 (CEST) Received: from samy by begin with local (Exim 4.95) (envelope-from ) id 1ngTj4-009a01-Ev; Mon, 18 Apr 2022 17:55:42 +0200 From: Samuel Thibault To: libc-stable@sourceware.org Cc: Samuel Thibault , commit-hurd@gnu.org Subject: [hurd,commited 2.34, 2.35] hurd: Fix arbitrary error code Date: Mon, 18 Apr 2022 17:55:42 +0200 Message-Id: <20220418155542.2283326-1-samuel.thibault@ens-lyon.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-10.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-stable@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-stable mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Apr 2022 15:55:45 -0000 ELIBBAD is Linux-specific. (cherry picked from commit 67ab66541dc1164540abda284645e38be90b5119) --- nss/nss_test_errno.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nss/nss_test_errno.c b/nss/nss_test_errno.c index 680f8a07b9..59a5c717be 100644 --- a/nss/nss_test_errno.c +++ b/nss/nss_test_errno.c @@ -28,7 +28,7 @@ static void __attribute__ ((constructor)) init (void) { /* An arbitrary error code which is otherwise not used. */ - errno = ELIBBAD; + errno = -1009; } /* Lookup functions for pwd follow that do not return any data. */ -- 2.35.1