From 27fc16debc34f0110480af6e636191bd17a2a5fd Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 15 Jun 1995 15:30:58 +0000 Subject: [PATCH] (process_file,absolute_filename): Handle filenames starting with a drive letter. --- lib-src/etags.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib-src/etags.c b/lib-src/etags.c index c31366d56d0..7c049568a2a 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c @@ -1033,7 +1033,11 @@ process_file (file) { char *filename; +#ifdef DOS_NT + if (file[0] == '/' || (isalpha (file[0]) && file[1] == ':')) +#else if (file[0] == '/') +#endif { /* file is an absolute filename. Canonicalise it. */ filename = absolute_filename (file, cwd); @@ -3747,7 +3751,11 @@ absolute_filename (file, cwd) { char *slashp, *cp, *res; +#ifdef DOS_NT + if (file[0] == '/' || (isalpha (file[0]) && file[1] == ':')) +#else if (file[0] == '/') +#endif res = concat (file, "", ""); else res = concat (cwd, file, ""); -- 2.39.2