From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: master fails to build on FreeBSD when ACL support is on Date: Sun, 21 Jan 2018 13:14:33 +0100 Message-ID: <87tvvfflxy.fsf@gmx.de> References: <86o9lua0yx.fsf@phe.ftfl.ca> <834lnly8ht.fsf@gnu.org> <86vafy20sj.fsf@phe.ftfl.ca> <83o9lpuct5.fsf@gnu.org> <83lggtu1qn.fsf@gnu.org> <9dd64b10-78ce-c561-8c51-9e15b11e102c@cs.ucla.edu> <87zi599dck.fsf@gmx.de> <5456c404-af18-7350-2e18-1683e7a14e85@cs.ucla.edu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1516536826 7455 195.159.176.226 (21 Jan 2018 12:13:46 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 21 Jan 2018 12:13:46 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Eli Zaretskii , Stefan Monnier , emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 21 13:13:41 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1edEVD-0001LF-Qj for ged-emacs-devel@m.gmane.org; Sun, 21 Jan 2018 13:13:35 +0100 Original-Received: from localhost ([::1]:53092 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1edEXD-0002cm-Iv for ged-emacs-devel@m.gmane.org; Sun, 21 Jan 2018 07:15:39 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40807) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1edEWW-0002bp-Gs for emacs-devel@gnu.org; Sun, 21 Jan 2018 07:14:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1edEWT-0006Xg-AJ for emacs-devel@gnu.org; Sun, 21 Jan 2018 07:14:56 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:50103) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1edEWT-0006Ts-0Q; Sun, 21 Jan 2018 07:14:53 -0500 Original-Received: from detlef.gmx.de ([212.86.59.118]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MWBpJ-1eJq782a41-00XMuR; Sun, 21 Jan 2018 13:14:35 +0100 X-Provags-ID: V03:K0:YHzQ+VHTP0U7HUyvJS0h71CmI8ehyfkADCbeid7Ro1+vyMc3CV/ PFdvWKfwFkBCaDdZipdyplM2WablLJD5wfBNt+RXL4twPQW6VoYtkwecTaMxEesDx3n+XI1 wrFxy3S9KF6lOc31MSNh2+G38tiHCIPK4n/Jff5ldNp+vUIUkK4mQcqUjc+ZkHXBJUCbfmQ 6JijQLqMsg1tO6353o79w== X-UI-Out-Filterresults: notjunk:1;V01:K0:4RC+5oXH6fA=:fkLr4Zu8NwEXod6Zi/53Ka 9duu5FcKaw0aW68XJUbZkU6f/+jznjIrfyAcIaQsI/pRokR6eHBNxUh1hA13mkJTftFOpLsie FCXu3ZnrV5sj3FLPT8EAC5TGiY/oMA6LAOF5WBS9LSt0oL4D8mFC0ar6LUQohP7z3f6dIUisO vm/DLF3vubInma7QXit8UKqFAyGuozVW8X7afEvjCYi0/D3JjssffVm8Cy3ODbUtF0oYLHnx8 qwlRdKTKqoO7dIk2yjzNuragQ6rNaBFJhHKNiHtUgb1SxrCEToii4ZZuyFH7x/MZu4NRjBtuz QPPCynlAwOfeFPPZcbLTBfHJ2GPSDWGtLlzCD3/fb2sOYcWSXEh6J6V2MUTRuFbK7uU5forcW Jn3KnhA5cuylKGCAzpPwOzMhupagaw6C794OhkT96EEDERmr1+9iIVoCWMtmDcK6X8FRLXwfZ Qd8UwOuxbpstEVveX0j53fMa/tmm7qQvo6CtRDc8Bp/4vbfaaDltsSJQDaEEv4E3luPPfFykx UcdsJx+KckGJBbbf9vVpQD3lQ0kMlseBLzZwdEialHFo+5qLFyrhlgvbmkSOALfaA1aQAptpm nNHTabCE6KIIzF1/FMMTP9w32yl/Uc6odTUhRbUBDXmf6OHGFQNRU3Utn33iWEoUgvPwnxAFt hSp9JhsDZkRwzBhN/2MVzWcvPAVSbjS2gPfOgKiY++szSOv7XIKnvwqsYQOoucf4IHvA+4jgB 1Jc7zWRkTBUmy04guJXCSN6oAYx+w61KIA6Af1ey3mQimchqEuvCVcfT9KR+F8KIXF51XyPy X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.15.19 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:222122 Archived-At: Paul Eggert writes: Hi Paul, > Michael Albinus wrote: >> What about `make-nearby-temp-file'? > > When TARGET is relative and default-directory/TARGET is in a different > file system from default-directory, I worried that > (make-nearby-temp-file TARGET) would be worse than (make-temp-file > (expand-file-name TARGET)) because it'd put the temp file into > default-directory's file system, not into TARGET's file > system. I have a mounted directory on "/net/ford/albinus". I get: --8<---------------cut here---------------start------------->8--- (let ((default-directory "/net/ford")) (make-nearby-temp-file "albinus/foo")) => "/net/ford/albinus/fooDnIYRm" (let ((default-directory "/net/ford")) (make-temp-file (expand-file-name "albinus/foo"))) => "/net/ford/albinus/foo8SyB9H" --8<---------------cut here---------------end--------------->8--- So it is almost the same. However, it differs, if the function `temporary-file-directory' got another implementation for the underlying file system: --8<---------------cut here---------------start------------->8--- (let ((default-directory "/sftp::~/")) (make-nearby-temp-file "albinus")) => "/sftp:localhost:/tmp/albinustrjpRx" (let ((default-directory "/sftp::~/")) (make-temp-file (expand-file-name "albinus"))) => "/sftp:localhost:/home/albinus/albinusOCUmTW" --8<---------------cut here---------------end--------------->8--- It is the responsibility of the `make-nearby-temp-file' implementation to respect file system boundaries. I don't claim it is bug-free, especially in the Tramp case it might not be as careful as it should be. To be tested. > However, I didn't consider it all that carefully, and if you > think it'd be better to use make-nearby-temp-file then by all means > please improve the code (now in master, not in emacs-26). I have no chance to test it somewhere but on GNU/Linux, so I feel uncomfortable to provide such a patch. Best regards, Michael.