From: Paul Eggert <eggert@cs.ucla.edu>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: emacs-devel@gnu.org
Subject: Re: master 9dc306b1: Improve reporting of I/O, access errors
Date: Thu, 19 Sep 2019 17:21:09 -0700 [thread overview]
Message-ID: <585476bd-e9f4-f622-a114-d7db6a36b06a@cs.ucla.edu> (raw)
In-Reply-To: <875zlqgiga.fsf@gmx.de>
On 9/18/19 12:41 AM, Michael Albinus wrote:
> Tramp trusts on file-attributes returning nil, when a
> file does not exist or is not accessible for whatever reason. This is
> true also for local files.
Could you give an example of where Tramp does this? That is, suppose
there is a serious local-file error (I/O error, ancestor-directory
permissions failure, etc.) when one uses Tramp to access a file - when
would it be wrong for Tramp to signal such an error?
You suggested that there might be such an example in Bug#37202; I didn't
quite understand that suggestion, and have followed up there.
> Furthermore, Tramp does not report anything but nil if a remote file is
> not accessible due to I/O errors. So the promise of this change cannot
> be kept for all situations.
It would be nicer if serious errors were also signaled for remote files,
but that's not essential; such a feature can be delayed until a later
version (if ever).
Although the jury might still be out on the
ancestor-directory-permissions aspect of the change (certainly on
MS-Windows, which reports EACCES for missing directories), surely Emacs
should not simply ignore I/O errors and the like. And the permissions
change has been helpful for testing, as it's uncovered a configuration
bug in how Emacs starts up (Bug#37445, still being investigated). As
that bug is possibly security-relevant, I'd like to shake it out (along
with any similar bugs that crop up) before deciding any withdrawal of
the ancestor-directory permissions aspect of the change.
next prev parent reply other threads:[~2019-09-20 0:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20190918022442.11082.40975@vcs0.savannah.gnu.org>
[not found] ` <20190918022444.103AC207F5@vcs0.savannah.gnu.org>
2019-09-18 7:41 ` master 9dc306b1: Improve reporting of I/O, access errors Michael Albinus
2019-09-18 7:44 ` Michael Albinus
2019-09-20 0:21 ` Paul Eggert [this message]
2019-09-20 5:48 ` Eli Zaretskii
2019-09-20 12:43 ` Michael Albinus
2019-09-20 19:05 ` Paul Eggert
2019-09-20 19:22 ` Michael Albinus
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=585476bd-e9f4-f622-a114-d7db6a36b06a@cs.ucla.edu \
--to=eggert@cs.ucla.edu \
--cc=emacs-devel@gnu.org \
--cc=michael.albinus@gmx.de \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).