Commit ddc61f46 authored by Richard M. Stallman's avatar Richard M. Stallman

(expand_and_dir_to_file): Use Fdirectory_file_name.

parent 80667d53
......@@ -1526,8 +1526,8 @@ expand_and_dir_to_file (filename, defdir)
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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment