summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1996-12-06 23:18:25 +0000
committerKarl Heuer <kwzh@gnu.org>1996-12-06 23:18:25 +0000
commit184944ed7e3a99bcdc7adeda8e8fa791ee56373f (patch)
treee27a43a2e54ed4e5cd8ce975b094ac9d3f4e8f84
parent75add49f6b7c0d41c93a468277f061ff28214270 (diff)
downloademacs-184944ed7e3a99bcdc7adeda8e8fa791ee56373f.tar.gz
(ange-ftp-normal-login): If using a smart gateway,
but ange-ftp-gateway-host is nil, generate the login name in the usual simple way.
-rw-r--r--lisp/ange-ftp.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/ange-ftp.el b/lisp/ange-ftp.el
index 2e4d0193496..2778e859ccb 100644
--- a/lisp/ange-ftp.el
+++ b/lisp/ange-ftp.el
@@ -1926,7 +1926,8 @@ PROC is the process to the FTP-client."
(cdr result))))
(setq result (ange-ftp-raw-send-cmd
proc
- (if (ange-ftp-use-smart-gateway-p host)
+ (if (and (ange-ftp-use-smart-gateway-p host)
+ ange-ftp-gateway-host)
(format "user \"%s\"@%s %s %s" user nshost pass account)
(format "user \"%s\" %s %s" user pass account))
(format "Logging in as user %s@%s" user host)))