]> git.eshelyaron.com Git - emacs.git/commitdiff
(directory_file_name): Don't get confused by // at end on Unix-like systems.
authorRichard M. Stallman <rms@gnu.org>
Sat, 24 Jun 1995 04:10:31 +0000 (04:10 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 24 Jun 1995 04:10:31 +0000 (04:10 +0000)
src/fileio.c

index 52d2f53ac6193a1ebc8931f459ec02bc0acdf1ac..d1ac36c2533bc9d790eba6c44fe72b090e6c8e4e 100644 (file)
@@ -658,7 +658,10 @@ directory_file_name (src, dst)
 #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;