all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sven Joachim <svenjoac@gmx.de>
To: Eli Zaretskii <eliz@gnu.org>
Cc: schwab@linux-m68k.org, 37475@debbugs.gnu.org
Subject: bug#37475: 27.0.50 bootstrap fails
Date: Sat, 21 Sep 2019 11:57:59 +0200	[thread overview]
Message-ID: <878sqi6kew.fsf@turtle.gmx.de> (raw)
In-Reply-To: <83lfuiq9b0.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 21 Sep 2019 12:37:39 +0300")

On 2019-09-21 12:37 +0300, Eli Zaretskii wrote:

>> Date: Sat, 21 Sep 2019 12:33:32 +0300
>> From: Eli Zaretskii <eliz@gnu.org>
>> Cc: 37475@debbugs.gnu.org
>>
>>   (defcustom message-user-organization-file
>>     (let (orgfile)
>>       (dolist (f (list "/etc/organization"
>> 		       "/etc/news/organization"
>> 		       "/usr/lib/news/organization"))
>> 	(when (file-readable-p f)
>> 	  (setq orgfile f)))
>>       orgfile)
>>     "Local news organization file."
>>
>> file-readable-p is documented to "Return t if file FILENAME exists and
>> you can read it."  So I think Ffile_readable_p should not signal an
>> error if the file does not exist, it should return nil instead.
>
> Hmm... I see that it does already.
>
> Andreas, can you tell whether this file exists on your system, and
> what was the errno value inside Ffile_readable_p?

It's EACCES aka Permission denied, given in the original bug report.  To
reproduce it:

,----
| $ sudo mkdir -p /etc/news
| $ sudo chmod 700 /etc/news
| $ rm -f lisp/gnus/deuglify.el
| $ make
`----

That's due to commit 9dc306b1db08 ("Improve reporting of I/O, access
errors") which seems over-zealous here: if there are insufficient
permissions to access the parent directory, file-readable-p ought to
return nil, I think.

Cheers,
       Sven





  reply	other threads:[~2019-09-21  9:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-21  9:07 bug#37475: 27.0.50 bootstrap fails Andreas Schwab
2019-09-21  9:33 ` Eli Zaretskii
2019-09-21  9:37   ` Eli Zaretskii
2019-09-21  9:57     ` Sven Joachim [this message]
2019-09-21 11:56       ` Andreas Schwab
2019-09-21 19:00 ` Paul Eggert

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=878sqi6kew.fsf@turtle.gmx.de \
    --to=svenjoac@gmx.de \
    --cc=37475@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=schwab@linux-m68k.org \
    /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.