+2007-01-27 Michael Albinus <michael.albinus@gmx.de>
+
+ * net/tramp.el (tramp-do-copy-or-rename-file-out-of-band): Set
+ default-directory to a sane value when calling start-process.
+
2007-01-27 Eli Zaretskii <eliz@gnu.org>
* ls-lisp.el (ls-lisp-use-localized-time-format): New defcustom.
;; Use rcp-like program for file transfer.
(unwind-protect
- (let ((p (apply 'start-process (buffer-name trampbuf) trampbuf
- copy-program copy-args)))
+ (let* ((default-directory
+ (if (and (stringp default-directory)
+ (file-accessible-directory-p default-directory))
+ default-directory
+ (tramp-temporary-file-directory)))
+ (p (apply 'start-process (buffer-name trampbuf) trampbuf
+ copy-program copy-args)))
(tramp-set-process-query-on-exit-flag p nil)
(tramp-process-actions p multi-method method user host
tramp-actions-copy-out-of-band))