From unknown Mon Aug 18 14:24:53 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#43987 <43987@debbugs.gnu.org> To: bug#43987 <43987@debbugs.gnu.org> Subject: Status: strerror return value Reply-To: bug#43987 <43987@debbugs.gnu.org> Date: Mon, 18 Aug 2025 21:24:53 +0000 retitle 43987 strerror return value reassign 43987 guile submitter 43987 Philipp Klaus Krause severity 43987 minor tag 43987 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 14 07:23:30 2020 Received: (at submit) by debbugs.gnu.org; 14 Oct 2020 11:23:30 +0000 Received: from localhost ([127.0.0.1]:50281 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kSesU-0004N6-Cc for submit@debbugs.gnu.org; Wed, 14 Oct 2020 07:23:30 -0400 Received: from lists.gnu.org ([209.51.188.17]:58414) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kSesR-0004My-NB for submit@debbugs.gnu.org; Wed, 14 Oct 2020 07:23:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43942) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kSesR-0001Dy-Fz for bug-guile@gnu.org; Wed, 14 Oct 2020 07:23:27 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:41125) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kSesP-0005T2-HW for bug-guile@gnu.org; Wed, 14 Oct 2020 07:23:27 -0400 Received: from [192.168.178.44] ([77.182.62.208]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MvsN5-1k9TES0XPr-00srxy for ; Wed, 14 Oct 2020 13:23:23 +0200 To: bug-guile@gnu.org From: Philipp Klaus Krause Subject: strerror return value Autocrypt: addr=pkk@spth.de; prefer-encrypt=mutual; keydata= mQGiBD+wIQ0RBAD5IkcgQQIAPO93xBBvviI0htuoaeb++GqG51BImx+rnWIS+1z+r3y5jQU5 IRYS8eDC3eR5PFtde/f7/3zxaJIB0bgXB1eMPot5CaN7mpUySVNh9bzH/UP7rVH0Ut7Bx/CI 7EXxhvYE23F/TAf+gS4flFqQ/GdK+MME+dg8J5nFbwCg92xq6iuAvyz7vSho9qbKHsCD3AkE AMbuLLBvk4mPvs19aRGZvT/pows1uzkeNq8fpmzvryb4UxUbU89qlNzA2Bg8ztVZGX9x5drb C4tFE29ZFAHn2bojx2ADxG85+2as8yfcz6sPG4HMzeTtugzPGCeRAXaSknZHsw6AC6LrtsEU sjEZMElfvu8uU4dthfhXOIDVNRHmA/446GsHRLosDHFuDjHpBQJPJSBnFDyRSCge2Q0gup96 GGhNc7KkYeIB8Dh7dCN3h5RYXflVTspxmgANUa+RFpL4pynsF16rtkfeh0UR8uLdoaGwMChw GyWIdRhX8MLQ8v3WHPCUrB/1f5xhRypQgF0/c8y4w5BarGQXy7AM0PljBbQxUGhpbGlwcCBL cmF1c2UgKFN0YW5kYXJkc2NobMO8c3NlbCkgPHBra0BzcHRoLmRlPohbBBMRAgAbBQI/sCEN BgsJCAcDAgMVAgMDFgIBAh4BAheAAAoJEG7VFfsbKC6a31wAni0szX2x9jjNqqch2fE5zOkd IJsSAKCuZaayyxtHPb6rpQtbDMUTS7rXe7kCDQQ/sCFjEAgAknletShOrS5UeFH6V09TksPL 5w8S1SaQThvdberD74Uaq5Weoeu5fCzeDlhRvTC+wQFxL5W2wdM3ZhqRpZIri7X3ab/WUsqv 0FCK8LB9HfioafjNg7uQbyUannvyBkj4WAfHrTDgDbNw8EJMehab9MUeCUZEkhXrk9b3rp3r /uoic1pymK0aZX+wUfayXGANAAk75HAruEWxpGObjcJ587tTOsfDAFnJlXKXLVXuqJDSraym ankbEfyX1CmfhetYn+s1fCpAHX/GOIQPEG2BCdeLdy8ApN0l6MIrRkJKbBnvnc8HsUI7Elfu huemyI/Nvhxk5+tuOS5kZBIyZKe8CwADBQf+InHwn00dafe8XNod9jRsHgCqE259ocEiL0Zs rw3NfwbckR6YVGtoovHna6I3+o4F4GPS/869WFw/w1HGGsa9t6SRjWeoH221bxYc+aTstGbA hd9OuDXnXFi9Mokh34cXQexvrVYjfOdbAl9TRezPBRygzr6XvUdUtIpZjZhW0WSdhdF67Obl F+S9kCX7v3Q0kSqnjzk05Qs5kHyaE+7BKiGQhvCz51J++CTCc/g16eOVVabHNLalAEInq1jn jAB15+JxDcA3HFup7+sHkkscAEQPPi8aNnWR32su0w9hfE1qQkvyHhOiPX2GVhm/Lt0C1vGr ZCB9Bve3r8M+Z7uMaohGBBgRAgAGBQI/sCFjAAoJEG7VFfsbKC6aQ4oAnibaEjyIlrRMTmyL K76lqhloK0EPAKCQsgCELscmeJnxyjV1zZt6AJ6ctQ== Message-ID: Date: Wed, 14 Oct 2020 13:23:22 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------5EC96CFD7859589D67935348" Content-Language: en-US X-Provags-ID: V03:K1:5Q/RodgrXM8UkopjaiCgqcNdSi11wO0QZlpIZmECzBP4DXyPusm lJwHt7gkoliWqysYYzvZog0qj9ENFRkFvbApBBf5eGYAV7/s1jeJ8MYL/oWiGrt1x0DUFQ6 JoAzX+02XTu2iqjm9ZuT3N3uc4VVUMlPtznSP2kLSu2+hYITWsxN8OTFW8CoMVtoTiN0ynm qTE+WhLbZO20Ih5qzl1ow== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:pHjFuSLe5OU=:bXQgw1rIeaUnpHnKmmZFTw gr06qA+PhAx64hNwmqjYpEnAQKnZmIqr0iSQyp8Kj/GlFfdBqnjPzUJctbyLMuUUzeD0N67OZ qECmiHMAsYAM4hEZu/Vc2ZwtSfDV2BV096JLf8tTJtng0yJ/IbyCWTf4RRvcpNqvSwXIrDd8a irB6ztpfGiNthqAJsjmiPnd9lNd4NdWB1VFUoqb4asWgXWZl3Zr0WXo4fhhGmMobg9ngKOcME q8obPTiHhaFXn7tUPCBDWS+0oZNCCF4yfpbcaNE+4ewkNdVxhzm8P5OfmqNNARhV1TuM568wM 02k9LfQzlay22REt6dMT1UwK7S1j0KF4n9wumb/s2ph0egF8OQ7VD84c7e6s3oD4OgDtdGV8H zCPyqeihHsodTFFtYJj5ik/0Q1TjZU14Lkm5KyRsbkHX2wRzP8DpVO238Yj3f Received-SPF: none client-ip=212.227.126.130; envelope-from=pkk@spth.de; helo=mout.kundenserver.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/14 07:23:23 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) This is a multi-part message in MIME format. --------------5EC96CFD7859589D67935348 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit This is just a very minor issue. libguile contains two calls to strerror where the result is used to initialize a char *. However, according to the strerror specification, the string returned by strerror should never be changed, so I think it would be better to use const char * instead. Philipp --------------5EC96CFD7859589D67935348 Content-Type: text/x-patch; charset=UTF-8; name="guile-strerror-const.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="guile-strerror-const.patch" diff --git a/libguile/posix.c b/libguile/posix.c index 47769003a..5c7bb35bd 100644 --- a/libguile/posix.c +++ b/libguile/posix.c @@ -1272,7 +1272,7 @@ renumber_file_descriptor (int fd, int err) { /* At this point we are in the child process before exec. We cannot safely raise an exception in this environment. */ - char *msg = strerror (errno); + const char *msg = strerror (errno); fprintf (fdopen (err, "a"), "start_child: dup failed: %s\n", msg); _exit (127); /* Use exit status 127, as with other exec errors. */ } @@ -1356,7 +1356,7 @@ start_child (const char *exec_file, char **exec_argv, /* The exec failed! There is nothing sensible to do. */ { - char *msg = strerror (errno); + const char *msg = strerror (errno); fprintf (fdopen (2, "a"), "In execvp of %s: %s\n", exec_file, msg); } --------------5EC96CFD7859589D67935348-- From debbugs-submit-bounces@debbugs.gnu.org Tue May 18 12:34:54 2021 Received: (at control) by debbugs.gnu.org; 18 May 2021 16:34:54 +0000 Received: from localhost ([127.0.0.1]:57116 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lj2gI-0004vB-KU for submit@debbugs.gnu.org; Tue, 18 May 2021 12:34:54 -0400 Received: from mail-ej1-f49.google.com ([209.85.218.49]:44686) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lj2gF-0004uo-Rq for control@debbugs.gnu.org; Tue, 18 May 2021 12:34:53 -0400 Received: by mail-ej1-f49.google.com with SMTP id lz27so15535958ejb.11 for ; Tue, 18 May 2021 09:34:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=o/DXwqiLAxiksHcigBTzflKc0YbUZZ4vY1FvYy5P5ic=; b=eMMOlPRKaLR0/w1o3pBvcLfPLRUg89IblSBj+eALs0vkvyyETMIB96CqzII8l5v+Zp +3l9Y3Tmx8QDoMlgkreeN+7Mlby7YaiZw90vW4dl+bF+ZsecL/pK9Z0R3hZW3manIU39 ZGCxF3gLH0Xq2HsAEOB3pDDNfzbxG2RhQc76SwXVyxq1U+W9FfNzonPo/BcsKk93ANdT OHnkvqQyMFgumGB7BtODuhQSev+6Ewv+hpYX+6WqnAonZErDSCq4R60RReVmBFUpMHyN R1KgfleKkdgO0ibIczzta4BW+hZu68miBXvGBn1+Pc6++5srQKQpHDN8qSSwpPNpnRSq 5kCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=o/DXwqiLAxiksHcigBTzflKc0YbUZZ4vY1FvYy5P5ic=; b=lbrTH0QvaZtBcMb/Ir75hqoDwNtweMpvFqiRwwVWq2n1N/YOlr2iaTIMd2xYuL42fz AQZCUN5yX09THUs9o1rWXz4TY+pYd6i9YN1gI7dB6Kk2dSVN4oC5KG/W+j7SXxWhAr73 4oWh7Bw7St88HWMbswxLcyj6SjBwn4Z1fVJLkz+RnC8MlXJ0z3J7UfXI2OlsSlSSZWY8 Dk3tuEaO8h3/mL7Ukb/i0ukd0mumPP6mdGq7NmVooMeYZ1BBpIQBc5uCiAF67sNump+I QsnXi4dHkyg31b04jXKTTxAfp8NemwYMM10Rd1TUAOqCI+0USUNfYoXNLir1N6wffFxQ 2zQg== X-Gm-Message-State: AOAM533PKKiPLdwWueUOupCxWFT7/r2NYD3vLHgd2nx+LDNSaveaAglf Slnw4cPK65ejynghqJoGQMHs2yn5G1Ptxg== X-Google-Smtp-Source: ABdhPJyeUe8CYmyiZ311LYe04LtJECXnqSVcWL7ZLjNwy49D+nYvYX+2VljUMDFoZytEBfzLaZTX8w== X-Received: by 2002:a17:906:17cc:: with SMTP id u12mr6831312eje.170.1621355685998; Tue, 18 May 2021 09:34:45 -0700 (PDT) Received: from [192.168.178.20] (b2b-109-90-125-150.unitymedia.biz. [109.90.125.150]) by smtp.gmail.com with ESMTPSA id n2sm13493471edi.32.2021.05.18.09.34.45 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 18 May 2021 09:34:45 -0700 (PDT) To: control@debbugs.gnu.org From: Taylan Kammer Subject: 43987 minor + patch Message-ID: <9424a5f2-6efe-1f14-7669-04e6be31a2e4@gmail.com> Date: Tue, 18 May 2021 18:34:42 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 43987 + patch severity 43987 minor From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 03 14:22:27 2021 Received: (at 43987-done) by debbugs.gnu.org; 3 Nov 2021 18:22:27 +0000 Received: from localhost ([127.0.0.1]:41165 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1miKu3-00019r-AH for submit@debbugs.gnu.org; Wed, 03 Nov 2021 14:22:27 -0400 Received: from mta-10-3.privateemail.com ([198.54.127.62]:56437) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1miKu1-00019b-Ri for 43987-done@debbugs.gnu.org; Wed, 03 Nov 2021 14:22:26 -0400 Received: from mta-10.privateemail.com (localhost [127.0.0.1]) by mta-10.privateemail.com (Postfix) with ESMTP id 55C3318000B3 for <43987-done@debbugs.gnu.org>; Wed, 3 Nov 2021 14:22:20 -0400 (EDT) Received: from [192.168.1.105] (unknown [10.20.151.239]) by mta-10.privateemail.com (Postfix) with ESMTPA id D83001800209 for <43987-done@debbugs.gnu.org>; Wed, 3 Nov 2021 14:22:19 -0400 (EDT) From: lloda Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\)) Subject: Re: strerror return value Message-Id: Date: Wed, 3 Nov 2021 19:22:17 +0100 To: 43987-done@debbugs.gnu.org X-Mailer: Apple Mail (2.3608.120.23.2.7) X-Virus-Scanned: ClamAV using ClamSMTP X-Spam-Score: 3.7 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Patch applied in ab9c0c9ca787da60ac9b956fdbcf4c1fa68c3300. Thanks! Content analysis details: (3.7 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [198.54.127.62 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [198.54.127.62 listed in wl.mailspike.net] 3.7 FAKE_REPLY_B No description available. X-Debbugs-Envelope-To: 43987-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.7 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Patch applied in ab9c0c9ca787da60ac9b956fdbcf4c1fa68c3300. Thanks! Content analysis details: (2.7 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [198.54.127.62 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [198.54.127.62 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager 3.7 FAKE_REPLY_B No description available. Patch applied in ab9c0c9ca787da60ac9b956fdbcf4c1fa68c3300. Thanks! From unknown Mon Aug 18 14:24:53 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 02 Dec 2021 12:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator