From 4592782ebb8440a96cd1a9e7fdf7c4f90b1960bd Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 24 Jun 1995 04:10:31 +0000 Subject: [PATCH] (directory_file_name): Don't get confused by // at end on Unix-like systems. --- src/fileio.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.39.2