summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1992-03-09 23:17:21 +0000
committerRoland McGrath <roland@redhat.com>1992-03-09 23:17:21 +0000
commit1fc97863a0ba8ace4f640a8d40c06d3fd1e560fa (patch)
tree80e4b6d35df993d9fe9d7cd6188c66aa4e37b7d7
parent46677a6769de33485e1c5158ea62794a1d15f135 (diff)
downloadgunmake-1fc97863a0ba8ace4f640a8d40c06d3fd1e560fa.tar.gz
Formerly file.c.~9~
-rw-r--r--file.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/file.c b/file.c
index 95c836e..ea0dae2 100644
--- a/file.c
+++ b/file.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1988, 1989, 1990, 1991 Free Software Foundation, Inc.
+/* Copyright (C) 1988, 1989, 1990, 1991, 1992 Free Software Foundation, Inc.
This file is part of GNU Make.
GNU Make is free software; you can redistribute it and/or modify
@@ -79,6 +79,12 @@ enter_file (name)
if (*name == '\0')
abort ();
+ /* This is also done in parse_file_seq, so this is redundant
+ for names read from makefiles. It is here for names passed
+ on the command line. */
+ while (name[0] == '.' && name[1] == '/' && name[2] != '\0')
+ name += 2;
+
hashval = 0;
for (n = name; *n != '\0'; ++n)
HASH (hashval, *n);