aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJürgen Hötzel2015-08-14 21:11:51 +0200
committerMichael Albinus2015-08-14 21:11:51 +0200
commitee90aa6dc35f130ec503a113b6e5114224e255f5 (patch)
tree428825962d05239a72d82a8a0a6705cf1a94ccec
parent0ab86500e37e8d76a73f0c375bf9195340f4e18d (diff)
downloademacs-ee90aa6dc35f130ec503a113b6e5114224e255f5.tar.gz
emacs-ee90aa6dc35f130ec503a113b6e5114224e255f5.zip
Flush file properties in Tramp.
* lisp/net/tramp-sh.el (tramp-sh-handle-set-file-modes) (tramp-sh-handle-set-file-times): * lisp/net/tramp-adb.el (tramp-adb-handle-set-file-modes) (tramp-adb-handle-set-file-times): Flush the file properties of the directory.
-rw-r--r--lisp/net/tramp-adb.el2
-rw-r--r--lisp/net/tramp-sh.el2
2 files changed, 4 insertions, 0 deletions
diff --git a/lisp/net/tramp-adb.el b/lisp/net/tramp-adb.el
index ca76f626b13..a8f52943f48 100644
--- a/lisp/net/tramp-adb.el
+++ b/lisp/net/tramp-adb.el
@@ -652,6 +652,7 @@ But handle the case, if the \"test\" command is not available."
652(defun tramp-adb-handle-set-file-modes (filename mode) 652(defun tramp-adb-handle-set-file-modes (filename mode)
653 "Like `set-file-modes' for Tramp files." 653 "Like `set-file-modes' for Tramp files."
654 (with-parsed-tramp-file-name filename nil 654 (with-parsed-tramp-file-name filename nil
655 (tramp-flush-file-property v (file-name-directory localname))
655 (tramp-flush-file-property v localname) 656 (tramp-flush-file-property v localname)
656 (tramp-adb-send-command-and-check 657 (tramp-adb-send-command-and-check
657 v (format "chmod %s %s" (tramp-compat-decimal-to-octal mode) localname)))) 658 v (format "chmod %s %s" (tramp-compat-decimal-to-octal mode) localname))))
@@ -659,6 +660,7 @@ But handle the case, if the \"test\" command is not available."
659(defun tramp-adb-handle-set-file-times (filename &optional time) 660(defun tramp-adb-handle-set-file-times (filename &optional time)
660 "Like `set-file-times' for Tramp files." 661 "Like `set-file-times' for Tramp files."
661 (with-parsed-tramp-file-name filename nil 662 (with-parsed-tramp-file-name filename nil
663 (tramp-flush-file-property v (file-name-directory localname))
662 (tramp-flush-file-property v localname) 664 (tramp-flush-file-property v localname)
663 (let ((time (if (or (null time) (equal time '(0 0))) 665 (let ((time (if (or (null time) (equal time '(0 0)))
664 (current-time) 666 (current-time)
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index bb939bf2df8..661c504b795 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -1407,6 +1407,7 @@ of."
1407(defun tramp-sh-handle-set-file-modes (filename mode) 1407(defun tramp-sh-handle-set-file-modes (filename mode)
1408 "Like `set-file-modes' for Tramp files." 1408 "Like `set-file-modes' for Tramp files."
1409 (with-parsed-tramp-file-name filename nil 1409 (with-parsed-tramp-file-name filename nil
1410 (tramp-flush-file-property v (file-name-directory localname))
1410 (tramp-flush-file-property v localname) 1411 (tramp-flush-file-property v localname)
1411 ;; FIXME: extract the proper text from chmod's stderr. 1412 ;; FIXME: extract the proper text from chmod's stderr.
1412 (tramp-barf-unless-okay 1413 (tramp-barf-unless-okay
@@ -1421,6 +1422,7 @@ of."
1421 (if (tramp-tramp-file-p filename) 1422 (if (tramp-tramp-file-p filename)
1422 (with-parsed-tramp-file-name filename nil 1423 (with-parsed-tramp-file-name filename nil
1423 (when (tramp-get-remote-touch v) 1424 (when (tramp-get-remote-touch v)
1425 (tramp-flush-file-property v (file-name-directory localname))
1424 (tramp-flush-file-property v localname) 1426 (tramp-flush-file-property v localname)
1425 (let ((time (if (or (null time) (equal time '(0 0))) 1427 (let ((time (if (or (null time) (equal time '(0 0)))
1426 (current-time) 1428 (current-time)