aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/net/tramp-sh.el16
2 files changed, 14 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 85e762497e4..8447be48e14 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12012-11-19 Michael Albinus <michael.albinus@gmx.de>
2
3 * net/tramp-sh.el (tramp-do-copy-or-rename-file): If both files
4 are remote, check out-of-band property for both.
5
12012-11-19 Stefan Monnier <monnier@iro.umontreal.ca> 62012-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * window.el (switch-to-buffer): Re-add the warning that was lost in the 8 * window.el (switch-to-buffer): Re-add the warning that was lost in the
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index 059e1e63c77..07da0b3dc16 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -1270,9 +1270,10 @@ target of the symlink differ."
1270 res-uid 1270 res-uid
1271 ;; 3. File gid. 1271 ;; 3. File gid.
1272 res-gid 1272 res-gid
1273 ;; 4. Last access time, as a list of integers. Normally this would be 1273 ;; 4. Last access time, as a list of integers. Normally this
1274 ;; in the same format as `current-time', but the subseconds part is not 1274 ;; would be in the same format as `current-time', but the
1275 ;; currently implemented, and (0 0) denotes an unknown time. 1275 ;; subseconds part is not currently implemented, and (0 0)
1276 ;; denotes an unknown time.
1276 ;; 5. Last modification time, likewise. 1277 ;; 5. Last modification time, likewise.
1277 ;; 6. Last status change time, likewise. 1278 ;; 6. Last status change time, likewise.
1278 '(0 0) '(0 0) '(0 0) ;CCC how to find out? 1279 '(0 0) '(0 0) '(0 0) ;CCC how to find out?
@@ -1980,6 +1981,7 @@ file names."
1980 (error "Unknown operation `%s', must be `copy' or `rename'" op)) 1981 (error "Unknown operation `%s', must be `copy' or `rename'" op))
1981 (let ((t1 (tramp-tramp-file-p filename)) 1982 (let ((t1 (tramp-tramp-file-p filename))
1982 (t2 (tramp-tramp-file-p newname)) 1983 (t2 (tramp-tramp-file-p newname))
1984 (length (nth 7 (file-attributes (file-truename filename))))
1983 (context (and preserve-selinux-context 1985 (context (and preserve-selinux-context
1984 (apply 'file-selinux-context (list filename)))) 1986 (apply 'file-selinux-context (list filename))))
1985 pr tm) 1987 pr tm)
@@ -2009,8 +2011,9 @@ file names."
2009 ok-if-already-exists keep-date preserve-uid-gid)) 2011 ok-if-already-exists keep-date preserve-uid-gid))
2010 2012
2011 ;; Try out-of-band operation. 2013 ;; Try out-of-band operation.
2012 ((tramp-method-out-of-band-p 2014 ((and
2013 v1 (nth 7 (file-attributes (file-truename filename)))) 2015 (tramp-method-out-of-band-p v1 length)
2016 (tramp-method-out-of-band-p v2 length))
2014 (tramp-do-copy-or-rename-file-out-of-band 2017 (tramp-do-copy-or-rename-file-out-of-band
2015 op filename newname keep-date)) 2018 op filename newname keep-date))
2016 2019
@@ -2038,8 +2041,7 @@ file names."
2038 2041
2039 ;; If the Tramp file has an out-of-band method, the 2042 ;; If the Tramp file has an out-of-band method, the
2040 ;; corresponding copy-program can be invoked. 2043 ;; corresponding copy-program can be invoked.
2041 ((tramp-method-out-of-band-p 2044 ((tramp-method-out-of-band-p v length)
2042 v (nth 7 (file-attributes (file-truename filename))))
2043 (tramp-do-copy-or-rename-file-out-of-band 2045 (tramp-do-copy-or-rename-file-out-of-band
2044 op filename newname keep-date)) 2046 op filename newname keep-date))
2045 2047