all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Paul Eggert <eggert@cs.ucla.edu>
To: Eli Zaretskii <eliz@gnu.org>
Cc: rcopley@gmail.com, lekktu@gmail.com, emacs-devel@gnu.org,
	rudalics@gmx.at
Subject: Re: Building master fails on Windows 10 when testing etc/NEWS file
Date: Thu, 19 Sep 2019 00:27:58 -0700	[thread overview]
Message-ID: <01cd8c7a-f72a-fb0c-0ac0-5376e69f2aec@cs.ucla.edu> (raw)
In-Reply-To: <83d0fxvkz7.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 505 bytes --]

On 9/18/19 5:37 AM, Eli Zaretskii wrote:
>> Is the MS-Windows tradition to pretend that permission is denied to
>> every missing directory?
> Yes.

OK, that explains why these problems cropped up on MS-Windows platforms even 
though I didn't see them on GNU/Linux.

Since defining PICKY_EACCES helped to find a configuration-related bug on 
GNU/Linux (Bug#37445) I would like to try it out on GNUish platforms, so I 
installed the attached. We can easily revert if it causes more problems than it 
cures.

[-- Attachment #2: 0001-Default-PICKY_ACCESS-to-false-on-non-MS.patch --]
[-- Type: text/x-patch, Size: 1362 bytes --]

From 30026cfe666e9647aeef73e26df5ffca2fa2c662 Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@cs.ucla.edu>
Date: Thu, 19 Sep 2019 00:19:11 -0700
Subject: [PATCH] Default PICKY_ACCESS to false on non-MS

* src/fileio.c (PICKY_EACCES) [!DOS_NT]: Default to false.
---
 src/fileio.c | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/src/fileio.c b/src/fileio.c
index 5337ea5c80..b2896c1fe1 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -257,12 +257,16 @@ file_attribute_errno (Lisp_Object file, int err)
    be checked further because they may be problems with an ancestor
    directory instead of with the file itself, which means that we
    don't have reliable info about the requested file.  In practice,
-   though, such errors are common enough that signaling them can be
-   annoying even if the errors are real (e.g., Bug#37445).  So return
-   nil for EACCES unless compiling with -DPICKY_EACCES, which is off
-   by default.  */
+   though, DOS_NT platforms set errno to EACCES for missing files like
+   "/var/mail", so signaling EACCES errors would be a mistake there.
+   So return nil for EACCES unless PICKY_EACCES, which is false by
+   default on DOS_NT.  */
 #ifndef PICKY_EACCES
+# ifdef DOS_NT
 enum { PICKY_EACCES = false };
+# else
+enum { PICKY_EACCES = true };
+# endif
 #endif
 
 Lisp_Object
-- 
2.17.1


  reply	other threads:[~2019-09-19  7:27 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-18  7:45 Building master fails on Windows 10 when testing etc/NEWS file martin rudalics
2019-09-18 10:08 ` Paul Eggert
2019-09-18 10:33   ` Richard Copley
2019-09-18 11:26     ` Paul Eggert
2019-09-18 11:36       ` Juanma Barranquero
2019-09-18 12:23         ` Paul Eggert
2019-09-18 12:31           ` Juanma Barranquero
2019-09-18 12:44           ` Eli Zaretskii
2019-09-18 14:27             ` Richard Copley
2019-09-18 15:01               ` Juanma Barranquero
2019-09-18 15:45                 ` Eli Zaretskii
2019-09-18 17:00                   ` Richard Copley
2019-09-18 17:23                     ` Eli Zaretskii
2019-09-18 18:33                       ` Eli Zaretskii
2019-09-18 18:35                         ` Richard Copley
2019-09-18 18:49                           ` Eli Zaretskii
2019-09-18 18:54                             ` Richard Copley
2019-09-18 18:47                         ` Eli Zaretskii
2019-09-18 20:16                           ` Paul Eggert
2019-09-19  8:18                             ` martin rudalics
2019-09-19  9:53                               ` Juanma Barranquero
2019-09-19  9:59                                 ` Juanma Barranquero
2019-09-18 15:05               ` Eli Zaretskii
2019-09-18 12:33         ` Eli Zaretskii
2019-09-18 12:37       ` Eli Zaretskii
2019-09-19  7:27         ` Paul Eggert [this message]
2019-09-18 10:35   ` Juanma Barranquero

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=01cd8c7a-f72a-fb0c-0ac0-5376e69f2aec@cs.ucla.edu \
    --to=eggert@cs.ucla.edu \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=lekktu@gmail.com \
    --cc=rcopley@gmail.com \
    --cc=rudalics@gmx.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.