aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/net
diff options
context:
space:
mode:
authorStefan Monnier2010-11-09 15:07:10 -0500
committerStefan Monnier2010-11-09 15:07:10 -0500
commitd607b96bc2824116a8fe0e5840ce49da7ce4514f (patch)
tree229a11bba88b67e8961db4d10aa8b3725f3a4873 /lisp/net
parent27410d0ac3406a341cc90ada064047a7f1ea5209 (diff)
parentc00980655bc15ca019fd6c559c69601be18f2407 (diff)
downloademacs-d607b96bc2824116a8fe0e5840ce49da7ce4514f.tar.gz
emacs-d607b96bc2824116a8fe0e5840ce49da7ce4514f.zip
Merge from emacs-23
Diffstat (limited to 'lisp/net')
-rw-r--r--lisp/net/tramp.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index 1ca46d213d3..e5ebe81ce29 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -2864,8 +2864,7 @@ User is always nil."
2864 (set-buffer-modified-p nil) 2864 (set-buffer-modified-p nil)
2865 ;; For root, preserve owner and group when editing files. 2865 ;; For root, preserve owner and group when editing files.
2866 (when (string-equal (file-remote-p filename 'user) "root") 2866 (when (string-equal (file-remote-p filename 'user) "root")
2867 (set (make-local-variable 'backup-by-copying-when-mismatch) t) 2867 (set (make-local-variable 'backup-by-copying-when-mismatch) t)))
2868 (put 'backup-by-copying-when-mismatch 'permanent-local t)))
2869 (when (and (stringp local-copy) 2868 (when (and (stringp local-copy)
2870 (or remote-copy (null tramp-temp-buffer-file-name))) 2869 (or remote-copy (null tramp-temp-buffer-file-name)))
2871 (delete-file local-copy)) 2870 (delete-file local-copy))