From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Philip Hodges Newsgroups: gmane.emacs.bugs Subject: bug#17330: files.el cd-absolute overcome false negative from file-executable-p Date: Thu, 08 May 2014 07:55:34 +0200 Message-ID: <536B1C56.4040307@bluewin.ch> References: <83ha51wj35.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1399528591 29059 80.91.229.3 (8 May 2014 05:56:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 8 May 2014 05:56:31 +0000 (UTC) Cc: 17330@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 08 07:56:23 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WiHJf-0005vK-7f for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 May 2014 07:56:23 +0200 Original-Received: from localhost ([::1]:44843 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WiHJe-0002Eu-SH for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 May 2014 01:56:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47031) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WiHJT-00027k-85 for bug-gnu-emacs@gnu.org; Thu, 08 May 2014 01:56:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WiHJL-0007pq-17 for bug-gnu-emacs@gnu.org; Thu, 08 May 2014 01:56:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37692) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WiHJK-0007pm-UV for bug-gnu-emacs@gnu.org; Thu, 08 May 2014 01:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WiHJK-00073G-G4 for bug-gnu-emacs@gnu.org; Thu, 08 May 2014 01:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Philip Hodges Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 May 2014 05:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17330 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 17330-submit@debbugs.gnu.org id=B17330.139952853127063 (code B ref 17330); Thu, 08 May 2014 05:56:02 +0000 Original-Received: (at 17330) by debbugs.gnu.org; 8 May 2014 05:55:31 +0000 Original-Received: from localhost ([127.0.0.1]:55043 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WiHIo-00072Q-14 for submit@debbugs.gnu.org; Thu, 08 May 2014 01:55:30 -0400 Original-Received: from zhbdzmsp-smta17.bluewin.ch ([195.186.99.133]:51476) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WiHIl-000723-7S for 17330@debbugs.gnu.org; Thu, 08 May 2014 01:55:28 -0400 Original-Received: from [195.186.227.130] ([195.186.227.130:40525] helo=zhhdzmsp-smta12.bluewin.ch) by zhbdzmsp-smta17.bluewin.ch (envelope-from ) (ecelerity 3.5.7.40067 r(Platform:3.5.7.0)) with ESMTP id 71/57-15928-84C1B635; Thu, 08 May 2014 05:55:20 +0000 Original-Received: from [192.168.0.13] (46.127.159.181) by zhhdzmsp-smta12.bluewin.ch (8.5.142) (authenticated as philip.hodges) id 52A87E3C09B5A1BC; Thu, 8 May 2014 05:55:20 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.3; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 In-Reply-To: <83ha51wj35.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:88767 Archived-At: > I prefer to solve the problem rather than ask users work around it. So when can we reasonably expect a guarantee of no more false negatives for users of 24.3 without having to inspect the fileio.c and files.el and reinvent an undocumented workaround? It will be great if you really can *solve* the problem, even just for this one particular scenario. I already suggested a pathological counterexample. Other sources mentioned do indicate that it is impossible to solve it reliably in general. But perhaps it will be enough in practice. Only the positive outcome of file-executable-p is documented as "this means you can access files in that directory". The negative outcome is not explicitly documented as meaning you cannot, yet that is how callers are interpreting it. So there is clearly scope for rewriting the documentation and changing the callers' logic to match. Asking the user whether the directory is supposed to be searchable after all is not just a workaround. It may well be the only right thing to do. In this case he was the person whose umask set the file modes on the host system, and he can also inspect them on that system. fgetacl showed no acl. I will try icacls but it may well be the same. [I did take a look at fileio.c in trunk with a view to trying to build it native and in cygwin for windows. Instead of simply downloading a snapshot I ended up reading rather too much of a very long thread about whether bzr should be replaced with git, and wondering whether they aren't already coexisting as mirrors anyway. So right now I don't have much progress to report on trying out candidate preferred solutions.]