From: Richard M. Stallman Date: Sat, 24 Jun 1995 04:10:31 +0000 (+0000) Subject: (directory_file_name): Don't get confused by // at end on Unix-like systems. X-Git-Tag: emacs-19.34~3490 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4592782ebb8440a96cd1a9e7fdf7c4f90b1960bd;p=emacs.git (directory_file_name): Don't get confused by // at end on Unix-like systems. --- diff --git a/src/fileio.c b/src/fileio.c index 52d2f53ac61..d1ac36c2533 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -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;