]> git.eshelyaron.com Git - emacs.git/commitdiff
(ange-ftp-start-process): Copy the environment.
authorRichard M. Stallman <rms@gnu.org>
Mon, 29 Dec 2003 20:00:36 +0000 (20:00 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 29 Dec 2003 20:00:36 +0000 (20:00 +0000)
lisp/net/ange-ftp.el

index dc3b5a62da94b29e6a8b542beda454fa71bcae6b..0277bd0aabc0cd2a6ba71d2e59572063df52a3e4 100644 (file)
@@ -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)