From 125e5ece0a816990494dd8960a0ff02a4401050b Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sat, 11 Sep 1999 05:44:53 +0000 Subject: * Various cleanups for release. --- glob/ChangeLog | 5 +++++ glob/glob.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'glob') diff --git a/glob/ChangeLog b/glob/ChangeLog index 592e7a05..0cb2fcb1 100644 --- a/glob/ChangeLog +++ b/glob/ChangeLog @@ -1,3 +1,8 @@ +1999-09-08 Eli Zaretskii + + * glob.c (prefix_array) [__MSDOS__,WINDOWS32]: Keep the trailing + slash unless DIRNAME is just "x:/". + 1999-09-06 Paul D. Smith * fnmatch.c: Update to latest version from GLIBC. diff --git a/glob/glob.c b/glob/glob.c index 1ab5d8b6..65055fb7 100644 --- a/glob/glob.c +++ b/glob/glob.c @@ -1105,7 +1105,7 @@ prefix_array (dirname, array, n) #if defined __MSDOS__ || defined WINDOWS32 else if (dirlen > 1) { - if (dirname[dirlen - 1] == '/') + if (dirname[dirlen - 1] == '/' && dirname[dirlen - 2] == ':') /* DIRNAME is "d:/". Don't prepend the slash from DIRNAME. */ --dirlen; else if (dirname[dirlen - 1] == ':') -- cgit v1.2.1