unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Hansen <larsh@math.ku.dk>
Subject: stat fail
Date: Mon, 01 Dec 2003 23:33:29 +0100	[thread overview]
Message-ID: <3FCBC1B9.4050706@math.ku.dk> (raw)

When I mount a SMB file system on directory foo, unplug the network and 
then call the C function stat (or lstat) on foo, the function returns -1 
and sets errno to 5 (Input/output error). This is on a GNU/Linux system.

The results for Emacs are (among other?):
1. file-attributes may return nil although the file exists.
2. directory-files-and-attributes may return names with no attributes.
3. file-exists-p may return nil although the file exists.

I don't know if the behavior of stat is a bug or not, but even if it is, 
maybe Emacs ought to be able to handle stat failing on an existing file. 
Cases 1 and 2 may be fixed by a doc change, and problem 3 may be fixed 
by using the C function access rather than stat.

                 reply	other threads:[~2003-12-01 22:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=3FCBC1B9.4050706@math.ku.dk \
    --to=larsh@math.ku.dk \
    /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).