diff options
| author | Kai Großjohann | 2003-04-13 12:46:11 +0000 |
|---|---|---|
| committer | Kai Großjohann | 2003-04-13 12:46:11 +0000 |
| commit | 64cf24550f3cfaf9c3ae692156b60676c00607d5 (patch) | |
| tree | 5da68910a6b9ad4492e42e8155170a9acfaac3ae | |
| parent | 457bc85868b5bf0f510411b064b040b912b691a3 (diff) | |
| download | emacs-64cf24550f3cfaf9c3ae692156b60676c00607d5.tar.gz emacs-64cf24550f3cfaf9c3ae692156b60676c00607d5.zip | |
From Michael Albinus <Michael.Albinus@alcatel.de>.
(ange-ftp-expand-symlink): If result of
expansion is a symlink, expand again.
(ange-ftp-file-symlink-p): Return target of symlink literally.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/net/ange-ftp.el | 17 |
2 files changed, 16 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 55563864e85..0b77e1d148d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2003-04-13 Kai Gro,A_(Bjohann <kai.grossjohann@gmx.net> | ||
| 2 | From Michael Albinus <Michael.Albinus@alcatel.de>. | ||
| 3 | |||
| 4 | * net/ange-ftp.el (ange-ftp-expand-symlink): If result of | ||
| 5 | expansion is a symlink, expand again. | ||
| 6 | (ange-ftp-file-symlink-p): Return target of symlink literally. | ||
| 7 | |||
| 1 | 2003-04-13 Masatake YAMATO <jet@gyve.org> | 8 | 2003-04-13 Masatake YAMATO <jet@gyve.org> |
| 2 | 9 | ||
| 3 | * bindings.el (toplevel): Don't change the face | 10 | * bindings.el (toplevel): Don't change the face |
diff --git a/lisp/net/ange-ftp.el b/lisp/net/ange-ftp.el index 58ffe0b27d5..ca5cb193bde 100644 --- a/lisp/net/ange-ftp.el +++ b/lisp/net/ange-ftp.el | |||
| @@ -3356,9 +3356,14 @@ system TYPE.") | |||
| 3356 | (ange-ftp-real-insert-file-contents filename visit beg end replace)))) | 3356 | (ange-ftp-real-insert-file-contents filename visit beg end replace)))) |
| 3357 | 3357 | ||
| 3358 | (defun ange-ftp-expand-symlink (file dir) | 3358 | (defun ange-ftp-expand-symlink (file dir) |
| 3359 | (if (file-name-absolute-p file) | 3359 | (let ((res (if (file-name-absolute-p file) |
| 3360 | (ange-ftp-replace-name-component dir file) | 3360 | (ange-ftp-replace-name-component dir file) |
| 3361 | (expand-file-name file dir))) | 3361 | (expand-file-name file dir)))) |
| 3362 | (if (file-symlink-p res) | ||
| 3363 | (ange-ftp-expand-symlink | ||
| 3364 | (ange-ftp-get-file-entry res) | ||
| 3365 | (file-name-directory (directory-file-name res))) | ||
| 3366 | res))) | ||
| 3362 | 3367 | ||
| 3363 | (defun ange-ftp-file-symlink-p (file) | 3368 | (defun ange-ftp-file-symlink-p (file) |
| 3364 | ;; call ange-ftp-expand-file-name rather than the normal | 3369 | ;; call ange-ftp-expand-file-name rather than the normal |
| @@ -3370,11 +3375,7 @@ system TYPE.") | |||
| 3370 | (gethash | 3375 | (gethash |
| 3371 | (ange-ftp-get-file-part file) | 3376 | (ange-ftp-get-file-part file) |
| 3372 | (ange-ftp-get-files (file-name-directory file))))) | 3377 | (ange-ftp-get-files (file-name-directory file))))) |
| 3373 | (if (stringp file-ent) | 3378 | (and (stringp file-ent) file-ent)) |
| 3374 | (if (file-name-absolute-p file-ent) | ||
| 3375 | (ange-ftp-replace-name-component | ||
| 3376 | (file-name-directory file) file-ent) | ||
| 3377 | file-ent))) | ||
| 3378 | (ange-ftp-real-file-symlink-p file))) | 3379 | (ange-ftp-real-file-symlink-p file))) |
| 3379 | 3380 | ||
| 3380 | (defun ange-ftp-file-exists-p (name) | 3381 | (defun ange-ftp-file-exists-p (name) |