diff options
| author | Richard M. Stallman | 2001-12-29 02:50:51 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2001-12-29 02:50:51 +0000 |
| commit | 8839c4a651216b4d0ad2c4aee635645cc7d6a56d (patch) | |
| tree | 3307cea6e98f154d87f927ee626f5f4e797561e9 | |
| parent | 91074c048b770f8e583bfffddfd723921a33633d (diff) | |
| download | emacs-8839c4a651216b4d0ad2c4aee635645cc7d6a56d.tar.gz emacs-8839c4a651216b4d0ad2c4aee635645cc7d6a56d.zip | |
(ange-ftp-insert-directory): Explicitly follow symlinks.
| -rw-r--r-- | lisp/ChangeLog | 1 | ||||
| -rw-r--r-- | lisp/net/ange-ftp.el | 18 |
2 files changed, 13 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 0a543e6491d..2d5b797cd97 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | * net/ange-ftp.el (ange-ftp-allow-child-lookup): Always return nil. | 3 | * net/ange-ftp.el (ange-ftp-allow-child-lookup): Always return nil. |
| 4 | This fixes a bug that treated all files as directories. | 4 | This fixes a bug that treated all files as directories. |
| 5 | (ange-ftp-insert-directory): Explicitly follow symlinks. | ||
| 5 | 6 | ||
| 6 | * international/iso-transl.el (iso-transl-char-map) Eliminate the | 7 | * international/iso-transl.el (iso-transl-char-map) Eliminate the |
| 7 | alias symbols--put the translated sequences here directly. | 8 | alias symbols--put the translated sequences here directly. |
diff --git a/lisp/net/ange-ftp.el b/lisp/net/ange-ftp.el index 4700a114f32..eaf7319f41b 100644 --- a/lisp/net/ange-ftp.el +++ b/lisp/net/ange-ftp.el | |||
| @@ -4380,13 +4380,19 @@ NEWNAME should be the name to give the new compressed or uncompressed file.") | |||
| 4380 | 4380 | ||
| 4381 | (defun ange-ftp-insert-directory (file switches &optional wildcard full) | 4381 | (defun ange-ftp-insert-directory (file switches &optional wildcard full) |
| 4382 | (let ((short (ange-ftp-abbreviate-filename file)) | 4382 | (let ((short (ange-ftp-abbreviate-filename file)) |
| 4383 | (parsed (ange-ftp-ftp-name (expand-file-name file)))) | 4383 | (parsed (ange-ftp-ftp-name (expand-file-name file))) |
| 4384 | tem) | ||
| 4384 | (if parsed | 4385 | (if parsed |
| 4385 | (insert | 4386 | (if (and (not wildcard) |
| 4386 | (if wildcard | 4387 | (setq tem (file-symlink-p (directory-file-name file)))) |
| 4387 | (let ((default-directory (file-name-directory file))) | 4388 | (ange-ftp-insert-directory |
| 4388 | (ange-ftp-ls (file-name-nondirectory file) switches nil nil t)) | 4389 | (ange-ftp-replace-name-component file tem) |
| 4389 | (ange-ftp-ls file switches full))) | 4390 | switches wildcard full) |
| 4391 | (insert | ||
| 4392 | (if wildcard | ||
| 4393 | (let ((default-directory (file-name-directory file))) | ||
| 4394 | (ange-ftp-ls (file-name-nondirectory file) switches nil nil t)) | ||
| 4395 | (ange-ftp-ls file switches full))))q | ||
| 4390 | (ange-ftp-real-insert-directory file switches wildcard full)))) | 4396 | (ange-ftp-real-insert-directory file switches wildcard full)))) |
| 4391 | 4397 | ||
| 4392 | (defun ange-ftp-dired-uncache (dir) | 4398 | (defun ange-ftp-dired-uncache (dir) |