From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Lars Hansen Newsgroups: gmane.emacs.devel Subject: stat fail Date: Mon, 01 Dec 2003 23:33:29 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <3FCBC1B9.4050706@math.ku.dk> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1070343037 25296 80.91.224.253 (2 Dec 2003 05:30:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 2 Dec 2003 05:30:37 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Dec 02 06:30:34 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AR37K-0004rL-00 for ; Tue, 02 Dec 2003 06:30:34 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AR378-0006ph-00 for ; Tue, 02 Dec 2003 06:30:34 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AR3bU-0008Uv-4t for emacs-devel@quimby.gnus.org; Tue, 02 Dec 2003 01:01:44 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AR1Yw-0005FK-PR for emacs-devel@gnu.org; Mon, 01 Dec 2003 22:50:58 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AQzu4-00065l-MQ for emacs-devel@gnu.org; Mon, 01 Dec 2003 21:05:11 -0500 Original-Received: from [62.84.220.10] (helo=post.kabelnettet.dk) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AQxl1-0005jw-Ai for emacs-devel@gnu.org; Mon, 01 Dec 2003 18:47:12 -0500 Original-Received: from math.ku.dk [62.84.220.219] by post.kabelnettet.dk with ESMTP (SMTPD32-8.03) id A1F3AB007C; Mon, 01 Dec 2003 23:34:27 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021130 X-Accept-Language: da, en-us, en Original-To: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:18258 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:18258 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.