From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: bug#29070: 26.0.90; emacs-26.0.90 pretest Date: Tue, 31 Oct 2017 15:27:32 +0100 Message-ID: <87mv47xui3.fsf@linux-m68k.org> References: <878tfso14o.fsf@chulpaca.i-did-not-set--mail-host-address--so-tickle-me> <87k1zcb5g0.fsf@users.sourceforge.net> <87o9oob442.fsf@chulpaca> <87efpkb3d5.fsf@users.sourceforge.net> <87mv48b25h.fsf@chulpaca> <87bmkob12g.fsf@users.sourceforge.net> <87lgjsaxh2.fsf@chulpaca> <878tfsawx8.fsf@users.sourceforge.net> <87k1zcavyh.fsf@chulpaca> <8760awav5u.fsf@users.sourceforge.net> <87inewaufb.fsf@chulpaca> <873760atnt.fsf@users.sourceforge.net> <87h8ugatef.fsf@chulpaca> <87zi87a9sx.fsf@users.sourceforge.net> <87bmknbjna.fsf@chulpaca> <877evbzckg.fsf@linux-m68k.org> <87a807bfoi.fsf@chulpaca> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1509460108 5228 195.159.176.226 (31 Oct 2017 14:28:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 31 Oct 2017 14:28:28 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) Cc: Noam Postavsky , 29070@debbugs.gnu.org To: =?UTF-8?Q?andr=C3=A9s_?= =?UTF-8?Q?ram=C3=ADrez?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 31 15:28:14 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e9XWU-00086I-81 for geb-bug-gnu-emacs@m.gmane.org; Tue, 31 Oct 2017 15:28:10 +0100 Original-Received: from localhost ([::1]:45893 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e9XWZ-00023k-OS for geb-bug-gnu-emacs@m.gmane.org; Tue, 31 Oct 2017 10:28:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52415) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e9XWQ-00022Q-8i for bug-gnu-emacs@gnu.org; Tue, 31 Oct 2017 10:28:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e9XWM-00063K-Ez for bug-gnu-emacs@gnu.org; Tue, 31 Oct 2017 10:28:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35655) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e9XWM-00063E-Aa for bug-gnu-emacs@gnu.org; Tue, 31 Oct 2017 10:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e9XWM-0003WY-2W for bug-gnu-emacs@gnu.org; Tue, 31 Oct 2017 10:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 31 Oct 2017 14:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29070 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29070-submit@debbugs.gnu.org id=B29070.150946005813514 (code B ref 29070); Tue, 31 Oct 2017 14:28:02 +0000 Original-Received: (at 29070) by debbugs.gnu.org; 31 Oct 2017 14:27:38 +0000 Original-Received: from localhost ([127.0.0.1]:44336 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e9XVx-0003Vu-QS for submit@debbugs.gnu.org; Tue, 31 Oct 2017 10:27:37 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.10]:35920) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e9XVv-0003Vl-8h for 29070@debbugs.gnu.org; Tue, 31 Oct 2017 10:27:36 -0400 Original-Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3yRDFy2FqKz1qsVS; Tue, 31 Oct 2017 15:27:34 +0100 (CET) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 3yRDFy0ZC3z1qqkT; Tue, 31 Oct 2017 15:27:34 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id fY--nKKM3aIm; Tue, 31 Oct 2017 15:27:33 +0100 (CET) X-Auth-Info: mQfdNwXV8uYl9dwxDolP9cTafP4EpScmk2kI7tDJ8diS1Z7YdEdxtxvXBM6EjfnK Original-Received: from localhost (ppp-188-174-147-245.dynamic.mnet-online.de [188.174.147.245]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Tue, 31 Oct 2017 15:27:33 +0100 (CET) Original-Received: by localhost (Postfix, from userid 1000) id 52E7D2C110D; Tue, 31 Oct 2017 15:27:32 +0100 (CET) X-Yow: Hey, I LIKE that POINT!! In-Reply-To: <87a807bfoi.fsf@chulpaca> ("=?UTF-8?Q?andr=C3=A9s_?= =?UTF-8?Q?ram=C3=ADrez?="'s message of "Tue, 31 Oct 2017 07:38:37 -0600") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:139264 Archived-At: On Okt 31 2017, andrés ramírez 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."