aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-08-08 05:17:22 +0000
committerRichard M. Stallman1993-08-08 05:17:22 +0000
commitddc61f4653039b1103f4eb2a5ce8f5ed3eb2a511 (patch)
treee70fd38f58cbac2a75152f76a8f1adbd7e9e02cc
parent80667d531d702af0b3258d5df140856f9f12087f (diff)
downloademacs-ddc61f4653039b1103f4eb2a5ce8f5ed3eb2a511.tar.gz
emacs-ddc61f4653039b1103f4eb2a5ce8f5ed3eb2a511.zip
(expand_and_dir_to_file): Use Fdirectory_file_name.
-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}