changeset 12369:54271828fd4e

(directory_file_name): Don't get confused by // at end on Unix-like systems.
author Richard M. Stallman <rms@gnu.org>
date Sat, 24 Jun 1995 04:10:31 +0000
parents dc2ce070185e
children 07d919c1b14a
files src/fileio.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/fileio.c	Sat Jun 24 02:32:55 1995 +0000
+++ b/src/fileio.c	Sat Jun 24 04:10:31 1995 +0000
@@ -658,7 +658,10 @@
 #else
   if (slen > 1 
       && IS_DIRECTORY_SEP (dst[slen - 1])
-      && !IS_ANY_SEP (dst[slen - 2]))
+#ifdef DOS_NT
+      && !IS_ANY_SEP (dst[slen - 2])
+#endif
+      )
     dst[slen - 1] = 0;
 #endif
   return 1;