From: Richard M. Stallman Date: Mon, 29 Dec 2003 20:00:36 +0000 (+0000) Subject: (ange-ftp-start-process): Copy the environment. X-Git-Tag: ttn-vms-21-2-B4~8074 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5da640603d8884e49b5181c5b91eb1e398a19cd4;p=emacs.git (ange-ftp-start-process): Copy the environment. --- diff --git a/lisp/net/ange-ftp.el b/lisp/net/ange-ftp.el index dc3b5a62da9..0277bd0aabc 100644 --- a/lisp/net/ange-ftp.el +++ b/lisp/net/ange-ftp.el @@ -1918,7 +1918,8 @@ on the gateway machine to do the ftp instead." ;; but that doesn't work: ftp never responds. ;; Can anyone find a fix for that? (let ((process-connection-type t) - (process-environment process-environment) + ;; Copy this so we don't alter it permanently. + (process-environment (copy-tree process-environment)) (buffer (get-buffer-create name))) (save-excursion (set-buffer buffer)