diff options
| author | Richard M. Stallman | 1995-06-30 01:07:22 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-06-30 01:07:22 +0000 |
| commit | 222e97c1b9587d2b262b9eefdbef0dd6b5b7ebf4 (patch) | |
| tree | 6444f2c416c7c6fd3d18fa69869c2e0046288cdc | |
| parent | 83656a198b64894650e6aace3384703a11b5608c (diff) | |
| download | emacs-222e97c1b9587d2b262b9eefdbef0dd6b5b7ebf4.tar.gz emacs-222e97c1b9587d2b262b9eefdbef0dd6b5b7ebf4.zip | |
(ange-ftp-normal-login): if ange-ftp-smart-gateway
is set but ange-ftp-gateway-host is nil, use user@host proxy protocol.
| -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 |