aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1998-09-13 03:42:11 +0000
committerKarl Heuer1998-09-13 03:42:11 +0000
commit7dd24f026123230877fd087b20d5ec6a56126c51 (patch)
tree4a86e06e1ddd10af32846c23242e452a57ac0d5a
parenta994501e3253088640cc8f921a3e1cfa60b5be90 (diff)
downloademacs-7dd24f026123230877fd087b20d5ec6a56126c51.tar.gz
emacs-7dd24f026123230877fd087b20d5ec6a56126c51.zip
(ange-ftp-insert-file-contents):
Use binary mode for dumb-unix hosts as for unix hosts. (ange-ftp-copy-file-internal): Likewise.
-rw-r--r--lisp/ange-ftp.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/ange-ftp.el b/lisp/ange-ftp.el
index 263fa4b6864..33199d66cbe 100644
--- a/lisp/ange-ftp.el
+++ b/lisp/ange-ftp.el
@@ -3220,7 +3220,8 @@ system TYPE.")
3220 (name (ange-ftp-quote-string (nth 2 parsed))) 3220 (name (ange-ftp-quote-string (nth 2 parsed)))
3221 (temp (ange-ftp-make-tmp-name host)) 3221 (temp (ange-ftp-make-tmp-name host))
3222 (binary (or (ange-ftp-binary-file filename) 3222 (binary (or (ange-ftp-binary-file filename)
3223 (eq (ange-ftp-host-type host user) 'unix))) 3223 (memq (ange-ftp-host-type host user)
3224 '(unix dumb-unix))))
3224 (abbr (ange-ftp-abbreviate-filename filename)) 3225 (abbr (ange-ftp-abbreviate-filename filename))
3225 size) 3226 size)
3226 (unwind-protect 3227 (unwind-protect
@@ -3505,8 +3506,10 @@ system TYPE.")
3505 (t-abbr (ange-ftp-abbreviate-filename newname filename)) 3506 (t-abbr (ange-ftp-abbreviate-filename newname filename))
3506 (binary (or (ange-ftp-binary-file filename) 3507 (binary (or (ange-ftp-binary-file filename)
3507 (ange-ftp-binary-file newname) 3508 (ange-ftp-binary-file newname)
3508 (and (eq (ange-ftp-host-type f-host f-user) 'unix) 3509 (and (memq (ange-ftp-host-type f-host f-user)
3509 (eq (ange-ftp-host-type t-host t-user) 'unix)))) 3510 '(unix dumb-unix))
3511 (memq (ange-ftp-host-type t-host t-user)
3512 '(unix dumb-unix)))))
3510 temp1 3513 temp1
3511 temp2) 3514 temp2)
3512 3515