From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#25854: 26.0.50; tramp-test19-directory-files-and-attributes fails on 32-bit Cygwin Date: Fri, 24 Feb 2017 09:55:33 +0200 Message-ID: <83y3wwrpje.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1487923030 16938 195.159.176.226 (24 Feb 2017 07:57:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 24 Feb 2017 07:57:10 +0000 (UTC) Cc: 25854@debbugs.gnu.org To: Ken Brown Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 24 08:57:06 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 1chAkT-00040Z-FH for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Feb 2017 08:57:05 +0100 Original-Received: from localhost ([::1]:35293 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1chAkZ-0007jy-Gl for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Feb 2017 02:57:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33451) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1chAkT-0007jm-51 for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2017 02:57:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1chAkQ-0000a2-4g for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2017 02:57:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55293) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1chAkQ-0000Zy-1M for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2017 02:57:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1chAkP-00089b-OO for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2017 02:57:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 24 Feb 2017 07:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25854 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25854-submit@debbugs.gnu.org id=B25854.148792297131286 (code B ref 25854); Fri, 24 Feb 2017 07:57:01 +0000 Original-Received: (at 25854) by debbugs.gnu.org; 24 Feb 2017 07:56:11 +0000 Original-Received: from localhost ([127.0.0.1]:53492 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1chAjb-00088Y-KS for submit@debbugs.gnu.org; Fri, 24 Feb 2017 02:56:11 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:42336) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1chAjZ-00088K-P5 for 25854@debbugs.gnu.org; Fri, 24 Feb 2017 02:56:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1chAjR-0000TW-B2 for 25854@debbugs.gnu.org; Fri, 24 Feb 2017 02:56:04 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51709) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1chAjR-0000TS-7X; Fri, 24 Feb 2017 02:56:01 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1228 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1chAjQ-0001ym-DM; Fri, 24 Feb 2017 02:56:00 -0500 In-reply-to: (message from Ken Brown on Thu, 23 Feb 2017 18:19:50 -0500) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:129715 Archived-At: > From: Ken Brown > Date: Thu, 23 Feb 2017 18:19:50 -0500 > > Starting with commit 3a6df2d, > tramp-test19-directory-files-and-attributes fails on 32-bit Cygwin. The > reason is that inode numbers tend to be very large, on the order of > 10^17, at least on my systems. As a result, the "convert inode" code in > tramp-convert-file-attributes always falls back to tramp-get-inode. > Since this increments by 1 on every call, the file-attribute comparisons > in tramp-test19-directory-files-and-attributes always fail. > > The significance of commit 3a6df2d is that it makes > tramp-get-remote-stat return a non-nil value, so that tramp uses 'stat' > for file attributes; this returns the true (large) inode number. Prior > to that commit, tramp-get-remote-stat would always return nil, so that > the tramp-perl-file-attributes script would be used for file > attributes. This script uses whatever inode number is returned by > Perl's version of 'stat', which is presumably some sort of 32-bit > truncation of the true inode number. > > Although I'm seeing this on 32-bit Cygwin, it seems to me that it could > in principle happen on any 32-bit platform. Would it work to convert the large inode values to a float?