aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2009-04-12 19:26:36 +0000
committerMichael Albinus2009-04-12 19:26:36 +0000
commit5ab38c3c5a41fdc567a9a476cfdb6b501e1272b3 (patch)
treeb1247ad6ec0d6c56d7c8353bccac6714fe0d587b
parentb86c2eb900327c4715a146d15bfac186b7570801 (diff)
downloademacs-5ab38c3c5a41fdc567a9a476cfdb6b501e1272b3.tar.gz
emacs-5ab38c3c5a41fdc567a9a476cfdb6b501e1272b3.zip
* tramp.el (tramp-do-copy-or-rename-file-directly): Overwrite
always the tmpfile. (Bug#2962).
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/net/tramp.el11
2 files changed, 9 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 139b3f299c0..06d2cbc4678 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12009-04-12 Michael Albinus <michael.albinus@gmx.de>
2
3 * tramp.el (tramp-do-copy-or-rename-file-directly): Overwrite
4 always the tmpfile. (Bug#2962).
5
12009-04-11 Chong Yidong <cyd@stupidchicken.com> 62009-04-11 Chong Yidong <cyd@stupidchicken.com>
2 7
3 * files.el (dir-locals-directory-cache): Change format to include 8 * files.el (dir-locals-directory-cache): Change format to include
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index deaabb0f61d..5339d14c344 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -3255,8 +3255,8 @@ the uid and gid from FILENAME."
3255 ;; We can do it directly with `tramp-send-command' 3255 ;; We can do it directly with `tramp-send-command'
3256 ((let (file-name-handler-alist) 3256 ((let (file-name-handler-alist)
3257 (and (file-readable-p (concat prefix localname1)) 3257 (and (file-readable-p (concat prefix localname1))
3258 (file-writable-p 3258 (file-writable-p
3259 (file-name-directory (concat prefix localname2))))) 3259 (file-name-directory (concat prefix localname2)))))
3260 (tramp-do-copy-or-rename-file-directly 3260 (tramp-do-copy-or-rename-file-directly
3261 op (concat prefix localname1) (concat prefix localname2) 3261 op (concat prefix localname1) (concat prefix localname2)
3262 ok-if-already-exists keep-date t) 3262 ok-if-already-exists keep-date t)
@@ -3287,11 +3287,11 @@ the uid and gid from FILENAME."
3287 (t2 3287 (t2
3288 (if (eq op 'copy) 3288 (if (eq op 'copy)
3289 (tramp-compat-copy-file 3289 (tramp-compat-copy-file
3290 localname1 tmpfile ok-if-already-exists 3290 localname1 tmpfile t
3291 keep-date preserve-uid-gid) 3291 keep-date preserve-uid-gid)
3292 (tramp-run-real-handler 3292 (tramp-run-real-handler
3293 'rename-file 3293 'rename-file
3294 (list localname1 tmpfile ok-if-already-exists))) 3294 (list localname1 tmpfile t)))
3295 ;; We must change the ownership as local user. 3295 ;; We must change the ownership as local user.
3296 (tramp-set-file-uid-gid 3296 (tramp-set-file-uid-gid
3297 tmpfile 3297 tmpfile
@@ -7758,9 +7758,6 @@ Only works for Bourne-like shells."
7758;; Functions for file-name-handler-alist: 7758;; Functions for file-name-handler-alist:
7759;; diff-latest-backup-file -- in diff.el 7759;; diff-latest-backup-file -- in diff.el
7760;; dired-uncache -- this will be needed when we do insert-directory caching 7760;; dired-uncache -- this will be needed when we do insert-directory caching
7761;; file-name-sans-versions -- use primitive?
7762;; get-file-buffer -- use primitive
7763;; vc-registered
7764 7761
7765;; arch-tag: 3a21a994-182b-48fa-b0cd-c1d9fede424a 7762;; arch-tag: 3a21a994-182b-48fa-b0cd-c1d9fede424a
7766;;; tramp.el ends here 7763;;; tramp.el ends here