summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-06-15 15:30:58 +0000
committerRichard M. Stallman <rms@gnu.org>1995-06-15 15:30:58 +0000
commit27fc16debc34f0110480af6e636191bd17a2a5fd (patch)
tree5efad0b172fbae2600148bddea9b38c645c30c70 /lib-src
parent68c723aa7cddc1c7f88f65004c846dd8748d56aa (diff)
downloademacs-27fc16debc34f0110480af6e636191bd17a2a5fd.tar.gz
(process_file,absolute_filename): Handle filenames
starting with a drive letter.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/etags.c8
1 files changed, 8 insertions, 0 deletions
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, "");