diff options
| author | Michael Albinus | 2007-01-27 14:40:08 +0000 |
|---|---|---|
| committer | Michael Albinus | 2007-01-27 14:40:08 +0000 |
| commit | 00e10871c5ff827693aa82dc12b269bc9951a28f (patch) | |
| tree | 23b01f483283737f008c7d6544da03192b5f3c5a | |
| parent | 9b0aaece34043d48548d5974fdf5243f761d45fd (diff) | |
| download | emacs-00e10871c5ff827693aa82dc12b269bc9951a28f.tar.gz emacs-00e10871c5ff827693aa82dc12b269bc9951a28f.zip | |
* net/tramp.el (tramp-do-copy-or-rename-file-out-of-band): Set
default-directory to a sane value when calling start-process.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/net/tramp.el | 9 |
2 files changed, 12 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4bf785d5b1a..613bd9e6bcd 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2007-01-27 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * net/tramp.el (tramp-do-copy-or-rename-file-out-of-band): Set | ||
| 4 | default-directory to a sane value when calling start-process. | ||
| 5 | |||
| 1 | 2007-01-27 Eli Zaretskii <eliz@gnu.org> | 6 | 2007-01-27 Eli Zaretskii <eliz@gnu.org> |
| 2 | 7 | ||
| 3 | * ls-lisp.el (ls-lisp-use-localized-time-format): New defcustom. | 8 | * ls-lisp.el (ls-lisp-use-localized-time-format): New defcustom. |
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 5625072a155..257fbc4e47b 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el | |||
| @@ -3245,8 +3245,13 @@ be a local filename. The method used must be an out-of-band method." | |||
| 3245 | 3245 | ||
| 3246 | ;; Use rcp-like program for file transfer. | 3246 | ;; Use rcp-like program for file transfer. |
| 3247 | (unwind-protect | 3247 | (unwind-protect |
| 3248 | (let ((p (apply 'start-process (buffer-name trampbuf) trampbuf | 3248 | (let* ((default-directory |
| 3249 | copy-program copy-args))) | 3249 | (if (and (stringp default-directory) |
| 3250 | (file-accessible-directory-p default-directory)) | ||
| 3251 | default-directory | ||
| 3252 | (tramp-temporary-file-directory))) | ||
| 3253 | (p (apply 'start-process (buffer-name trampbuf) trampbuf | ||
| 3254 | copy-program copy-args))) | ||
| 3250 | (tramp-set-process-query-on-exit-flag p nil) | 3255 | (tramp-set-process-query-on-exit-flag p nil) |
| 3251 | (tramp-process-actions p multi-method method user host | 3256 | (tramp-process-actions p multi-method method user host |
| 3252 | tramp-actions-copy-out-of-band)) | 3257 | tramp-actions-copy-out-of-band)) |