From 3224b54d5cc5964af5e6509579fd942eae04f1d1 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Tue, 19 Oct 2010 11:50:07 +0200 Subject: [PATCH] * net/tramp-sh.el (tramp-do-file-attributes-with-stat) (tramp-do-directory-files-and-attributes-with-stat): Use "e0" in order to make stat results a float. Patch by Andreas Schwab . --- lisp/ChangeLog | 10 +++++++++- lisp/net/tramp-sh.el | 4 ++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 949e7d40e3d..ed11b1c19b1 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,10 @@ +2010-10-19 Michael Albinus + + * net/tramp-sh.el (tramp-do-file-attributes-with-stat) + (tramp-do-directory-files-and-attributes-with-stat): Use "e0" in + order to make stat results a float. Patch by Andreas Schwab + . + 2010-10-18 Julien Danjou * avoid.el (mouse-avoidance-ignore-p): Ignore mouse when it is @@ -95,7 +102,8 @@ 2010-10-15 Michael Albinus * net/tramp-sh.el (tramp-open-connection-setup-interactive-shell): - Suppress expansion of tabs to spaces. + Suppress expansion of tabs to spaces. Reported by Dale Sedivec + . 2010-10-14 Kenichi Handa diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index 474c39adeed..1f13f50a240 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el @@ -1241,7 +1241,7 @@ target of the symlink differ." (format ;; On Opsware, pdksh (which is the true name of ksh there) doesn't ;; parse correctly the sequence "((". Therefore, we add a space. - "( (%s %s || %s -h %s) && %s -c '( (\"%%N\") %%h %s %s %%X.0 %%Y.0 %%Z.0 %%s.0 \"%%A\" t %%i.0 -1)' %s || echo nil)" + "( (%s %s || %s -h %s) && %s -c '( (\"%%N\") %%h %s %s %%Xe0 %%Ye0 %%Ze0 %%se0 \"%%A\" t %%ie0 -1)' %s || echo nil)" (tramp-get-file-exists-command vec) (tramp-shell-quote-argument localname) (tramp-get-test-command vec) @@ -1629,7 +1629,7 @@ and gid of the corresponding user is taken. Both parameters must be integers." ;; but it does not work on all remote systems. Therefore, we ;; quote the filenames via sed. "cd %s; echo \"(\"; (%s -a | sed -e s/\\$/\\\"/g -e s/^/\\\"/g | xargs " - "%s -c '(\"%%n\" (\"%%N\") %%h %s %s %%X.0 %%Y.0 %%Z.0 %%s.0 \"%%A\" t %%i.0 -1)'); " + "%s -c '(\"%%n\" (\"%%N\") %%h %s %s %%Xe0 %%Ye0 %%Ze0 %%se0 \"%%A\" t %%ie0 -1)'); " "echo \")\"") (tramp-shell-quote-argument localname) (tramp-get-ls-command vec) -- 2.39.2