aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2008-05-16 20:20:36 +0000
committerMichael Albinus2008-05-16 20:20:36 +0000
commit82f3844e661254f2eb2e845e183f145c63e3b7ab (patch)
treea013ac7936425a9b1a6bc0ad27e7d00f8b3a46b1
parent98712492e73fbc31f6751fc13ac3416b44ee9221 (diff)
downloademacs-82f3844e661254f2eb2e845e183f145c63e3b7ab.tar.gz
emacs-82f3844e661254f2eb2e845e183f145c63e3b7ab.zip
* net/tramp.el (tramp-handle-write-region): Fix check for short
track. Reported by Glenn Morris <rgm@gnu.org>.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/net/tramp.el7
2 files changed, 9 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 36b146f59ba..b4037a5d772 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12008-05-16 Michael Albinus <michael.albinus@gmx.de>
2
3 * net/tramp.el (tramp-handle-write-region): Fix check for short
4 track. Reported by Glenn Morris <rgm@gnu.org>.
5
12008-05-16 Eric S. Raymond <esr@snark.thyrsus.com> 62008-05-16 Eric S. Raymond <esr@snark.thyrsus.com>
2 7
3 * vc.el: Remove my analysis of SCCS/RCS concurrency issues from 8 * vc.el: Remove my analysis of SCCS/RCS concurrency issues from
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index 723eba0a93b..fb124389278 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -4185,9 +4185,10 @@ Returns a file name in `tramp-auto-save-directory' for autosaving this file."
4185 ;; `file-writable-p' calls 'file-expand-file-name'. We 4185 ;; `file-writable-p' calls 'file-expand-file-name'. We
4186 ;; cannot use `tramp-run-real-handler' therefore. 4186 ;; cannot use `tramp-run-real-handler' therefore.
4187 (let (file-name-handler-alist) 4187 (let (file-name-handler-alist)
4188 (file-writable-p (file-name-directory localname)) 4188 (and
4189 (or (file-directory-p localname) 4189 (file-writable-p (file-name-directory localname))
4190 (file-writable-p localname)))) 4190 (or (file-directory-p localname)
4191 (file-writable-p localname)))))
4191 ;; Short track: if we are on the local host, we can run directly. 4192 ;; Short track: if we are on the local host, we can run directly.
4192 (tramp-run-real-handler 4193 (tramp-run-real-handler
4193 'write-region 4194 'write-region