diff options
| author | Richard M. Stallman | 1993-11-19 16:19:32 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-11-19 16:19:32 +0000 |
| commit | 7ce370e11ffa9d1c7355b2bb162e0900f46b921e (patch) | |
| tree | 1dba94ca260bf583c2edf82a63d03fdb83f53fac | |
| parent | f4e3d4eb483dc4502e2c60ace21266f43cbb6484 (diff) | |
| download | emacs-7ce370e11ffa9d1c7355b2bb162e0900f46b921e.tar.gz emacs-7ce370e11ffa9d1c7355b2bb162e0900f46b921e.zip | |
(ange-ftp-parse-dired-listing): Skip extra blank line
after the "total" line.
| -rw-r--r-- | lisp/ange-ftp.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/ange-ftp.el b/lisp/ange-ftp.el index 9e51f6f33da..57313dcbffc 100644 --- a/lisp/ange-ftp.el +++ b/lisp/ange-ftp.el | |||
| @@ -856,7 +856,7 @@ SIZE, if supplied, should be a prime number." | |||
| 856 | ;;;; Internal variables. | 856 | ;;;; Internal variables. |
| 857 | ;;;; ------------------------------------------------------------ | 857 | ;;;; ------------------------------------------------------------ |
| 858 | 858 | ||
| 859 | (defconst ange-ftp-version "$Revision: 1.34 $") | 859 | (defconst ange-ftp-version "$Revision: 1.35 $") |
| 860 | 860 | ||
| 861 | (defvar ange-ftp-data-buffer-name " *ftp data*" | 861 | (defvar ange-ftp-data-buffer-name " *ftp data*" |
| 862 | "Buffer name to hold directory listing data received from ftp process.") | 862 | "Buffer name to hold directory listing data received from ftp process.") |
| @@ -2437,6 +2437,8 @@ a listing, then return nil." | |||
| 2437 | (cond | 2437 | (cond |
| 2438 | ((looking-at "^total [0-9]+$") | 2438 | ((looking-at "^total [0-9]+$") |
| 2439 | (forward-line 1) | 2439 | (forward-line 1) |
| 2440 | ;; Some systems put in a blank line here. | ||
| 2441 | (if (eolp) (forward-line 1)) | ||
| 2440 | (ange-ftp-ls-parser)) | 2442 | (ange-ftp-ls-parser)) |
| 2441 | ((looking-at "[^\n]+\\( not found\\|: Not a directory\\)\n\\'") | 2443 | ((looking-at "[^\n]+\\( not found\\|: Not a directory\\)\n\\'") |
| 2442 | ;; It's an ls error message. | 2444 | ;; It's an ls error message. |