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: thanks for the comments Date: Sun, 4 May 2014 00:43:25 +0200 Message-ID: References: <41559D99-B080-4B34-B491-3A811FA9FEAE@bluewin.ch> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1399157066 27417 80.91.229.3 (3 May 2014 22:44:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 3 May 2014 22:44:26 +0000 (UTC) To: 17330@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 04 00:44:19 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 1WgifL-0004mm-4P for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 May 2014 00:44:19 +0200 Original-Received: from localhost ([::1]:51285 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WgifK-00038u-Mg for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 May 2014 18:44:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35570) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WgifB-00038a-Bu for bug-gnu-emacs@gnu.org; Sat, 03 May 2014 18:44:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wgif4-0003qH-MI for bug-gnu-emacs@gnu.org; Sat, 03 May 2014 18:44:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:32794) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wgif4-0003qD-IX for bug-gnu-emacs@gnu.org; Sat, 03 May 2014 18:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Wgif4-0000Gm-8u for bug-gnu-emacs@gnu.org; Sat, 03 May 2014 18:44:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <41559D99-B080-4B34-B491-3A811FA9FEAE@bluewin.ch> Resent-From: Philip Hodges Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 May 2014 22:44: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: Original-Received: via spool by 17330-submit@debbugs.gnu.org id=B17330.1399157017969 (code B ref 17330); Sat, 03 May 2014 22:44:02 +0000 Original-Received: (at 17330) by debbugs.gnu.org; 3 May 2014 22:43:37 +0000 Original-Received: from localhost ([127.0.0.1]:50139 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wgiee-0000FY-RY for submit@debbugs.gnu.org; Sat, 03 May 2014 18:43:37 -0400 Original-Received: from zhhdzmsp-smta16.bluewin.ch ([195.186.227.132]:37198) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wgieb-0000FI-H6 for 17330@debbugs.gnu.org; Sat, 03 May 2014 18:43:34 -0400 Original-Received: from [195.186.99.130] ([195.186.99.130:56979] helo=zhbdzmsp-smta11.bluewin.ch) by zhhdzmsp-smta16.bluewin.ch (envelope-from ) (ecelerity 3.5.7.40067 r(Platform:3.5.7.0)) with ESMTP id 14/87-13081-E0175635; Sat, 03 May 2014 22:43:26 +0000 Original-Received: from [192.168.0.10] (46.127.159.181) by zhbdzmsp-smta11.bluewin.ch (8.5.142) (authenticated as philip.hodges@bluewin.ch) id 51E5C44E15F96A1F for 17330@debbugs.gnu.org; Sat, 3 May 2014 22:43:26 +0000 X-Mailer: Apple Mail (2.1874) 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:88610 Archived-At: thanks for all the discussion contributions. I'm really happy about having my own personal same day lisp fix working = for me to stop cd-absolute believing the false negative from the = check_executable function. My best hope for the remaining subprocess cwd = cases is to look at the samba configuration and see if I can get it = improved, and maybe add a user to the cygwin passwd file. Anything involving a rebuild and new release will take months before it = is available for me to use where I need it. For completeness, and in the spirit of DRY, whatever uses start-process = and call-process *could* be refactored to share the same code to offer = the same override as file-executable-p in the same situation. And while = we are about it, can we please not ask if a file is executable when we = really just want to know if it is a searchable directory suitable for = cd. I don't see how we can ever completely rule out false negatives, unless = we are prepared to change check_executable to actually try to use the = directory (cd to it, open it, list its entries, return t, whatever). = Even the euidaccess man page warns against using it: "Generally, it is = safer just to attempt the desired operation and handle any permission = error that occurs". But I do accept that there may well be no consensus = to follow through with more reliable or less gullible code. If it is = just a few legacy platforms that lack euidaccess and fall back to = checking the wrong uid with access, then never mind. If we can prove = that the native and cygwin builds behave differently, then the offending = library function can probably be fixed long before emacs can work around = it. Thank you for pushing that suggestion. My samba share is also afflicted with false negative writeable checks, = as described here two years ago: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D10257 I connect to the samba filesystem directly in Windows as a user without = local administrator rights. I'll let you know if mounting it from cygwin = with special acl options confers more appropriate access permissions or = even works at all.=