unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Andreas Schwab <schwab@linux-m68k.org>
To: "andrés ramírez" <rrandresf@gmail.com>
Cc: Noam Postavsky <npostavs@users.sourceforge.net>, 29070@debbugs.gnu.org
Subject: bug#29070: 26.0.90; emacs-26.0.90 pretest
Date: Tue, 31 Oct 2017 15:27:32 +0100	[thread overview]
Message-ID: <87mv47xui3.fsf@linux-m68k.org> (raw)
In-Reply-To: <87a807bfoi.fsf@chulpaca> ("andrés ramírez"'s message of "Tue, 31 Oct 2017 07:38:37 -0600")

On Okt 31 2017, andrés ramírez <rrandresf@gmail.com> wrote:

> Hi Andreas.
>> What is the kernel version you are running?
>
> Linux chulpaca 3.4.113-sun8i #18 SMP PREEMPT Thu Jun 15 02:16:06 CEST 2017 armv7l GNU/Linux

That kernel does not support fstat on the O_PATH fd.  Please try this
patch:

diff --git a/src/dired.c b/src/dired.c
index 28d1cffb44..f192cf5c49 100644
--- a/src/dired.c
+++ b/src/dired.c
@@ -953,7 +953,14 @@ file_attributes (int fd, char const *name,
     {
       record_unwind_protect_int (close_file_unwind, namefd);
       if (fstat (namefd, &s) != 0)
-	err = errno;
+	{
+	  err = errno;
+	  /* The Linux kernel only supports fstat on O_PATH file
+	     descriptors since version 3.6.  Handle this error like
+	     missing support for O_PATH.  */
+	  if (err == EBADF)
+	    err = EINVAL;
+	}
       else
 	{
 	  err = 0;


Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





  reply	other threads:[~2017-10-31 14:27 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-30 20:02 bug#29070: 26.0.90; emacs-26.0.90 pretest rrandresf
2017-10-30 20:14 ` Noam Postavsky
2017-10-30 21:25   ` rrandresf
2017-10-30 21:38     ` Noam Postavsky
2017-10-30 22:41       ` rrandresf
2017-10-30 23:07         ` Noam Postavsky
2017-10-30 23:36           ` andrés ramírez
2017-10-30 23:52             ` Noam Postavsky
2017-10-31  0:18               ` andrés ramírez
2017-10-31  0:41                 ` Noam Postavsky
2017-10-31  1:59                   ` andrés ramírez
2017-10-31  2:11                     ` Noam Postavsky
2017-10-31  2:32                       ` andrés ramírez
2017-10-31  2:49                         ` Noam Postavsky
2017-10-31  3:05                           ` andrés ramírez
2017-10-31  3:21                             ` Noam Postavsky
2017-10-31  3:27                               ` andrés ramírez
2017-10-31 10:30                                 ` Noam Postavsky
2017-10-31 12:12                                   ` andrés ramírez
2017-10-31 13:11                                     ` Andreas Schwab
2017-10-31 13:38                                       ` andrés ramírez
2017-10-31 14:27                                         ` Andreas Schwab [this message]
2017-10-31 15:18                                           ` andrés ramírez
2017-10-31 20:21                                             ` Andreas Schwab
2017-11-01  1:00                                               ` andrés ramírez
2017-11-01 23:47                                                 ` Noam Postavsky
2017-11-01 20:48                                             ` Andreas Schwab

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=87mv47xui3.fsf@linux-m68k.org \
    --to=schwab@linux-m68k.org \
    --cc=29070@debbugs.gnu.org \
    --cc=npostavs@users.sourceforge.net \
    --cc=rrandresf@gmail.com \
    /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).