aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fileio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 6a94b2c34da..b9a7dc478bb 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -1526,8 +1526,8 @@ expand_and_dir_to_file (filename, defdir)
1526 stat behaves differently depending! */ 1526 stat behaves differently depending! */
1527 if (XSTRING (abspath)->size > 1 1527 if (XSTRING (abspath)->size > 1
1528 && XSTRING (abspath)->data[XSTRING (abspath)->size - 1] == '/') 1528 && XSTRING (abspath)->data[XSTRING (abspath)->size - 1] == '/')
1529 abspath = Fsubstring (abspath, make_number (0), 1529 /* We cannot take shortcuts; they might be wrong for magic file names. */
1530 make_number (XSTRING (abspath)->size - 1)); 1530 abspath = Fdirectory_file_name (abspath);
1531#endif 1531#endif
1532 return abspath; 1532 return abspath;
1533} 1533}