Mercurial > emacs
changeset 4483:6894dd27c9ec
(expand_and_dir_to_file): Use Fdirectory_file_name.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 08 Aug 1993 05:17:22 +0000 |
parents | 09d0f4b26641 |
children | c589c71324dd |
files | src/fileio.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/fileio.c Sun Aug 08 05:01:06 1993 +0000 +++ b/src/fileio.c Sun Aug 08 05:17:22 1993 +0000 @@ -1526,8 +1526,8 @@ stat behaves differently depending! */ if (XSTRING (abspath)->size > 1 && XSTRING (abspath)->data[XSTRING (abspath)->size - 1] == '/') - abspath = Fsubstring (abspath, make_number (0), - make_number (XSTRING (abspath)->size - 1)); + /* We cannot take shortcuts; they might be wrong for magic file names. */ + abspath = Fdirectory_file_name (abspath); #endif return abspath; }