* net/tramp-gvfs.el (tramp-gvfs-handle-copy-file): Do not pass
empty argument to gvfs-copy.
This commit is contained in:
parent
6a8033e1c6
commit
3277c1ee3a
2 changed files with 13 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
|||
2010-07-11 Magnus Henoch <magnus.henoch@gmail.com>
|
||||
|
||||
* net/tramp-gvfs.el (tramp-gvfs-handle-copy-file): Do not pass
|
||||
empty argument to gvfs-copy.
|
||||
|
||||
2010-07-10 Aleksei Gusev <aleksei.gusev@gmail.com> (tiny change)
|
||||
|
||||
* progmodes/compile.el (compilation-error-regexp-alist-alist): Add
|
||||
|
|
|
@ -551,11 +551,14 @@ is no information where to trace the message.")
|
|||
(tramp-message v 4 "`copy-file' failed, trying `gvfs-copy'")
|
||||
(unless
|
||||
(zerop
|
||||
(tramp-gvfs-send-command
|
||||
v "gvfs-copy"
|
||||
(if (or keep-date preserve-uid-gid) "--preserve" "")
|
||||
(tramp-gvfs-url-file-name filename)
|
||||
(tramp-gvfs-url-file-name newname)))
|
||||
(let ((args
|
||||
(append (if (or keep-date preserve-uid-gid)
|
||||
(list "--preserve")
|
||||
nil)
|
||||
(list
|
||||
(tramp-gvfs-url-file-name filename)
|
||||
(tramp-gvfs-url-file-name newname)))))
|
||||
(apply 'tramp-gvfs-send-command v "gvfs-copy" args)))
|
||||
;; Propagate the error.
|
||||
(tramp-error v (car err) "%s" (cdr err)))))))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue