diff options
author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1997-08-27 06:31:27 +0000 |
---|---|---|
committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1997-08-27 06:31:27 +0000 |
commit | b1795946fd54511db65b8428f68dad8a33c57cd4 (patch) | |
tree | 1c151950e3730c66dc4cd3e93cabefffeace8a22 | |
parent | 7d85a3e836013ccedd692635a6882941effc405a (diff) |
Notes
-rw-r--r-- | usr.bin/make/main.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/make/main.c b/usr.bin/make/main.c index 84515c4c12719..a01c4a7771bb7 100644 --- a/usr.bin/make/main.c +++ b/usr.bin/make/main.c @@ -47,7 +47,7 @@ static const char copyright[] = static char sccsid[] = "@(#)main.c 8.3 (Berkeley) 3/19/94"; #endif static const char rcsid[] = - "$Id: main.c,v 1.20 1997/08/14 19:24:11 fsmp Exp $"; + "$Id: main.c,v 1.21 1997/08/25 21:35:44 fsmp Exp $"; #endif /* not lint */ /*- @@ -834,8 +834,6 @@ ReadMakefile(p, q) Parse_File("(stdin)", stdin); Var_Set("MAKEFILE", "", VAR_GLOBAL); } else { - if ((stream = fopen(fname, "r")) != NULL) - goto found; /* if we've chdir'd, rebuild the path name */ if (curdir != objdir && *fname != '/') { (void)sprintf(path, "%s/%s", curdir, fname); @@ -843,7 +841,8 @@ ReadMakefile(p, q) fname = path; goto found; } - } + } else if ((stream = fopen(fname, "r")) != NULL) + goto found; /* look in -I and system include directories. */ name = Dir_FindFile(fname, parseIncPath); if (!name) |