diff options
| -rw-r--r-- | lisp/ange-ftp.el | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/ange-ftp.el b/lisp/ange-ftp.el index 0da2944c5fa..512d357e808 100644 --- a/lisp/ange-ftp.el +++ b/lisp/ange-ftp.el | |||
| @@ -1861,9 +1861,10 @@ host specified in ``ange-ftp-gateway-host''." | |||
| 1861 | (defun ange-ftp-normal-login (host user pass account proc) | 1861 | (defun ange-ftp-normal-login (host user pass account proc) |
| 1862 | "Connect to the FTP-server on HOST as USER using PASSWORD and ACCOUNT. | 1862 | "Connect to the FTP-server on HOST as USER using PASSWORD and ACCOUNT. |
| 1863 | PROC is the process to the FTP-client." | 1863 | PROC is the process to the FTP-client." |
| 1864 | (let ((result (ange-ftp-raw-send-cmd | 1864 | (let* ((nshost (ange-ftp-nslookup-host host)) |
| 1865 | (result (ange-ftp-raw-send-cmd | ||
| 1865 | proc | 1866 | proc |
| 1866 | (format "open %s" (ange-ftp-nslookup-host host)) | 1867 | (format "open %s" nshost) |
| 1867 | (format "Opening FTP connection to %s" host)))) | 1868 | (format "Opening FTP connection to %s" host)))) |
| 1868 | (or (car result) | 1869 | (or (car result) |
| 1869 | (ange-ftp-error host user | 1870 | (ange-ftp-error host user |
| @@ -1871,7 +1872,9 @@ PROC is the process to the FTP-client." | |||
| 1871 | (cdr result)))) | 1872 | (cdr result)))) |
| 1872 | (setq result (ange-ftp-raw-send-cmd | 1873 | (setq result (ange-ftp-raw-send-cmd |
| 1873 | proc | 1874 | proc |
| 1874 | (format "user \"%s\" %s %s" user pass account) | 1875 | (if (ange-ftp-use-smart-gateway-p host) |
| 1876 | (format "user \"%s\"@%s %s %s" user nshost pass account) | ||
| 1877 | (format "user \"%s\" %s %s" user pass account)) | ||
| 1875 | (format "Logging in as user %s@%s" user host))) | 1878 | (format "Logging in as user %s@%s" user host))) |
| 1876 | (or (car result) | 1879 | (or (car result) |
| 1877 | (progn | 1880 | (progn |