]> git.eshelyaron.com Git - emacs.git/commitdiff
* net/tramp-sh.el (tramp-sh-handle-set-file-times): Set $UTC only
authorMichael Albinus <michael.albinus@gmx.de>
Thu, 21 Feb 2013 13:36:16 +0000 (14:36 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Thu, 21 Feb 2013 13:36:16 +0000 (14:36 +0100)
temporarily, via "env".

lisp/ChangeLog
lisp/net/tramp-sh.el

index 15dd5d30654691f035bde800b200b5dcf76b7c35..9ecf7ebddd7ec0533881cc859cc4f5bda91b934e 100644 (file)
@@ -1,3 +1,8 @@
+2013-02-21  Michael Albinus  <michael.albinus@gmx.de>
+
+       * net/tramp-sh.el (tramp-sh-handle-set-file-times): Set $UTC only
+       temporarily, via "env".
+
 2013-02-21  Glenn Morris  <rgm@gnu.org>
 
        * info.el (Info-enable-edit): Remove.
index 7388c5708746e6f41e4b81fb1eb843e1b536e01f..82cbda5708627e05ba88a70a913e37c5b23665c1 100644 (file)
@@ -1410,7 +1410,7 @@ of."
              (utc (not (featurep 'xemacs))))
          (tramp-send-command-and-check
           v (format "%s touch -t %s %s"
-                    (if utc "TZ=UTC; export TZ;" "")
+                    (if utc "env TZ=UTC" "")
                     (if utc
                         (format-time-string "%Y%m%d%H%M.%S" time t)
                       (format-time-string "%Y%m%d%H%M.%S" time))