Commit 82f3844e authored by Michael Albinus's avatar Michael Albinus
Browse files

* net/tramp.el (tramp-handle-write-region): Fix check for short

track.  Reported by Glenn Morris <rgm@gnu.org>.
parent 98712492
2008-05-16 Michael Albinus <michael.albinus@gmx.de>
* net/tramp.el (tramp-handle-write-region): Fix check for short
track. Reported by Glenn Morris <rgm@gnu.org>.
2008-05-16 Eric S. Raymond <esr@snark.thyrsus.com>
 
* vc.el: Remove my analysis of SCCS/RCS concurrency issues from
......
......@@ -4185,9 +4185,10 @@ Returns a file name in `tramp-auto-save-directory' for autosaving this file."
;; `file-writable-p' calls 'file-expand-file-name'. We
;; cannot use `tramp-run-real-handler' therefore.
(let (file-name-handler-alist)
(file-writable-p (file-name-directory localname))
(or (file-directory-p localname)
(file-writable-p localname))))
(and
(file-writable-p (file-name-directory localname))
(or (file-directory-p localname)
(file-writable-p localname)))))
;; Short track: if we are on the local host, we can run directly.
(tramp-run-real-handler
'write-region
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment