summaryrefslogtreecommitdiff
path: root/usr.bin/m4/main.c
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>1999-09-14 08:21:38 +0000
committerMarc Espie <espie@cvs.openbsd.org>1999-09-14 08:21:38 +0000
commit688ca0dc80e1ccc5f1fe3104b89735d3e11312df (patch)
tree9fc28043d4d3ac1721d6f6599e8ba139d1c19010 /usr.bin/m4/main.c
parentab5c029c47b2b4d8c906708e0d60c5e0fc065d14 (diff)
Implement -I option and M4PATH environment variable
Diffstat (limited to 'usr.bin/m4/main.c')
-rw-r--r--usr.bin/m4/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/m4/main.c b/usr.bin/m4/main.c
index a2a6b39d3df..d613c29d818 100644
--- a/usr.bin/m4/main.c
+++ b/usr.bin/m4/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.14 1999/09/06 13:29:32 espie Exp $ */
+/* $OpenBSD: main.c,v 1.15 1999/09/14 08:21:37 espie Exp $ */
/* $NetBSD: main.c,v 1.12 1997/02/08 23:54:49 cgd Exp $ */
/*-
@@ -47,7 +47,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: main.c,v 1.14 1999/09/06 13:29:32 espie Exp $";
+static char rcsid[] = "$OpenBSD: main.c,v 1.15 1999/09/14 08:21:37 espie Exp $";
#endif
#endif /* not lint */
@@ -192,7 +192,7 @@ main(argc,argv)
p = *argv;
if (p[0] == '-' && p[1] == EOS)
ifp = stdin;
- else if ((ifp = fopen(p, "r")) == NULL)
+ else if ((ifp = fopen_trypath(p)) == NULL)
err(1, "%s", p);
sp = -1;
fp = 0;