From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Newsgroups: gmane.lisp.guile.bugs Subject: bug#72547: [PATCH 4/9] filesys.c: Fix readlink for ports on Darwin. Date: Sun, 20 Oct 2024 21:20:17 +0200 Message-ID: <87froqlgy6.fsf@gnu.org> References: <20240809225435.19028-1-~@wolfsden.cz> <20240809225435.19028-4-~@wolfsden.cz> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19796"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 72547@debbugs.gnu.org To: Tomas Volf <~@wolfsden.cz> Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Sun Oct 20 21:20:52 2024 Return-path: Envelope-to: guile-bugs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1t2bTu-00050B-D6 for guile-bugs@m.gmane-mx.org; Sun, 20 Oct 2024 21:20:50 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t2bTj-0006Qi-KZ; Sun, 20 Oct 2024 15:20:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t2bTh-0006QZ-Sr for bug-guile@gnu.org; Sun, 20 Oct 2024 15:20:37 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t2bTh-0008Fo-4K for bug-guile@gnu.org; Sun, 20 Oct 2024 15:20:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=8+iAe6PvdwK7V5wJRs/PanSKam//kth6Pu6SFXpwLyg=; b=SR/RsFHP1v/FKKnS6WzSEjvTXWhf0SeLgQaiIqTFCjKd4+j8dep6NerNF6t+Bs2Gv1NCGiGqouboIsDJbM7t3+IMwamhcGjfzwGi9c5z0KyYEIZE0S+fiMDc0lrpOTg035rBKy/5FJif8a3YIdpvPtdHCN/AsyAEB9zHUeoKFZSuyM1jZcSQVGGkF2YwKStojDJMwkrsiaIMo1Ljv1aVgAZevUg21nGnEWLMxHX4xC3t3ZU8vi6frVpVCWxfTi60VG0XeUEadQ2zAbeQjVwpfVV/iuc+Rxf20xh8LoZlsK8O7iDwDtB8EdVGgoDMTBmg3sgB/7VB8Nrd2FM8dEMlIw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t2bU6-0000Bb-GE for bug-guile@gnu.org; Sun, 20 Oct 2024 15:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sun, 20 Oct 2024 19:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72547 X-GNU-PR-Package: guile X-GNU-PR-Keywords: patch Original-Received: via spool by 72547-submit@debbugs.gnu.org id=B72547.1729452053684 (code B ref 72547); Sun, 20 Oct 2024 19:21:02 +0000 Original-Received: (at 72547) by debbugs.gnu.org; 20 Oct 2024 19:20:53 +0000 Original-Received: from localhost ([127.0.0.1]:48564 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t2bTw-0000Ay-N4 for submit@debbugs.gnu.org; Sun, 20 Oct 2024 15:20:52 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:40656) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t2bTu-0000Aj-UH for 72547@debbugs.gnu.org; Sun, 20 Oct 2024 15:20:51 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t2bTP-0008BM-R4; Sun, 20 Oct 2024 15:20:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=8+iAe6PvdwK7V5wJRs/PanSKam//kth6Pu6SFXpwLyg=; b=Hag1S0ErxcFe90amMm1C EdeNSGDTLvwhSFsNfv5zAZa2f8/wPsiqTQp5lJr/bM4BooYUMI9WjoV/wM+0QnWnQ/usbN+AYl7ro fxS0uMK8A/21EwWRBARCr5XALmJCHTxbR2cIFzIIY5zBtgmAfYADeVOxwFcAiW5UVacFm6GCPFqDX 8WFjDFPxumAiUp5TQgclvqz85w4Kszs+Pv/NoukYPN9hsL1WokQ+ajxfZxvUTbghnIjWFhj2A+e/L 6XMt53Z92b2Asx8pr3qVTNnh1ndmWXx1WqNbUueG0Ruq8eB9xTMUC5/w4/jlKLaNpJP9g5mG8ASrw sc88UI42VPN1SQ==; In-Reply-To: <20240809225435.19028-4-~@wolfsden.cz> (Tomas Volf's message of "Sat, 10 Aug 2024 00:54:30 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.bugs:11051 Archived-At: Tomas Volf <~@wolfsden.cz> skribis: > +#elif HAVE_FREADLINK > + /* There is no branch in s_scm_readlink that would lead to having both fd and > + * non-empty c_path. Therefore if fd is set, we (on Darwin only) use > + * freadlink and ignore the c_path. On linux this case is already handled by > + * readlinkat, but Darwin does not understand empty c_path to mean "the fd > + * itself" the way Linux does. */ Removed the leading stars on continuation lines, for styling consistency.