diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2020-08-26 13:25:35 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2020-08-26 13:27:56 -0700 |
commit | 14fb657ba82da346d36f05f88da26f1c5498b798 (patch) | |
tree | ca60dbe7a621ad7a5d00b1a28f489caf15e4896a /test/lisp/emacs-lisp/map-tests.el | |
parent | ff864be694247e5f6c8732afcbaeb1c0a8a8a124 (diff) | |
download | emacs-14fb657ba82da346d36f05f88da26f1c5498b798.tar.gz emacs-14fb657ba82da346d36f05f88da26f1c5498b798.tar.bz2 emacs-14fb657ba82da346d36f05f88da26f1c5498b798.zip |
Fix expand-file-name symlink-to-dir bug
Problem reported by Yegor Timoshenko (Bug#26911),
and I ran into it myself recently in normal-top-level.
* doc/lispref/files.texi (File Name Expansion), etc/NEWS: Mention this.
* src/fileio.c (Fexpand_file_name): Expand "/a/b/." to "/a/b/" not
"/a/b", to avoid misinterpreting a symlink "/a/b". Similarly,
expand "/a/b/c/.." to "/a/b/" not "/a/b".
* test/lisp/net/tramp-tests.el (tramp-test05-expand-file-name):
Adjust to match new behavior.
(tramp-test05-expand-file-name-relative): This test now succeeds,
at least on Fedora 31.
* test/src/fileio-tests.el:
(fileio-tests--expand-file-name-trailing-slash) New test.
Diffstat (limited to 'test/lisp/emacs-lisp/map-tests.el')
0 files changed, 0 insertions, 0 deletions