]> git.eshelyaron.com Git - emacs.git/commit
Fix Tramp rounding of file sizes and inode numbers
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 27 Aug 2019 01:57:56 +0000 (18:57 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 27 Aug 2019 02:09:22 +0000 (19:09 -0700)
commit0e2d559daf43a04024ceaacfc8844839af2d50df
tree187a5dddaca64b2820caaeee2125c311a9ed2813
parent3ef6849b458893669b1d83653e3672f7f1ac56cd
Fix Tramp rounding of file sizes and inode numbers

* lisp/net/tramp-sh.el (tramp-perl-file-attributes)
(tramp-perl-directory-files-and-attributes)
(tramp-do-file-attributes-with-stat)
(tramp-do-directory-files-and-attributes-with-stat):
Format file sizes and inode numbers without trailing ".0",
to avoid rounding errors when absolute values exceed 2**53
(Bug#36940#94).  This fixes the problem for Emacs 27 and later,
and doesn't hurt in earlier Emacs.
lisp/net/tramp-sh.el