Subject: bug#10325: 24.0.92; copy-file: using a not existing source file and ftp (tramp)

From: Stefan Reichör <[email-masked]>
Date: Mon, 19 Dec 2011 11:24:38 +0100

Hi!

Copying a not existing file locally correctly raises a file-error:

(copy-file "/home/hz/ju" "~/")

Debugger entered--Lisp error: (file-error "Opening input file" "no such file or directory" "/home/hz/ju")
  copy-file("/home/hz/ju" "~/")
  eval((copy-file "/home/hz/ju" "~/") nil)
  eval-last-sexp-1(nil)
  eval-last-sexp(nil)
  call-interactively(eval-last-sexp nil nil)

However, when copying a not existent file to a ftp server hangs the copy operation:

(copy-file "/home/hz/ju" "/ftp:[email-masked]:/dest-path/")

I see the following in the message area:

Copying /home/hz/ju to /ftp:[email-masked]:/dest-path/...

I need to interrupt the operation using C-g.

Stefan.