summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>2000-04-03 02:58:46 +0000
committerespie <espie@openbsd.org>2000-04-03 02:58:46 +0000
commit633307eda6c2ca1e6ddea90a90622e753ff99602 (patch)
treed6bfee919e70626d76e761efe1af156683443153
parentdaemon's group should be daemon, not guest! (diff)
downloadwireguard-openbsd-633307eda6c2ca1e6ddea90a90622e753ff99602.tar.xz
wireguard-openbsd-633307eda6c2ca1e6ddea90a90622e753ff99602.zip
Junk CDPATH from the environment.
-rw-r--r--usr.bin/make/main.c6
-rw-r--r--usr.bin/make/make.15
2 files changed, 8 insertions, 3 deletions
diff --git a/usr.bin/make/main.c b/usr.bin/make/main.c
index db83c32070b..22d15056940 100644
--- a/usr.bin/make/main.c
+++ b/usr.bin/make/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.29 2000/03/26 16:21:32 espie Exp $ */
+/* $OpenBSD: main.c,v 1.30 2000/04/03 02:58:46 espie Exp $ */
/* $NetBSD: main.c,v 1.34 1997/03/24 20:56:36 gwr Exp $ */
/*
@@ -49,7 +49,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)main.c 8.3 (Berkeley) 3/19/94";
#else
-static char rcsid[] = "$OpenBSD: main.c,v 1.29 2000/03/26 16:21:32 espie Exp $";
+static char rcsid[] = "$OpenBSD: main.c,v 1.30 2000/04/03 02:58:46 espie Exp $";
#endif
#endif /* not lint */
@@ -586,6 +586,7 @@ main(argc, argv)
}
setenv("PWD", objdir, 1);
+ unsetenv("CDPATH");
create = Lst_Init();
makefiles = Lst_Init();
@@ -654,6 +655,7 @@ main(argc, argv)
MainParseArgs(argc, argv);
+
/*
* Initialize archive, target and suffix modules in preparation for
* parsing the makefile(s)
diff --git a/usr.bin/make/make.1 b/usr.bin/make/make.1
index bcf40e103e2..578eefae1d9 100644
--- a/usr.bin/make/make.1
+++ b/usr.bin/make/make.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: make.1,v 1.29 2000/03/11 21:40:07 aaron Exp $
+.\" $OpenBSD: make.1,v 1.30 2000/04/03 02:58:46 espie Exp $
.\" $NetBSD: make.1,v 1.18 1997/03/10 21:19:53 christos Exp $
.\"
.\" Copyright (c) 1990, 1993
@@ -1162,6 +1162,9 @@ uses the following environment variables, if they exist:
.Ev MAKEOBJDIRPREFIX ,
and
.Ev PWD .
+.Nm
+also ignores and unsets
+.Ev CDPATH .
.Sh FILES
.Bl -tag -width /usr/share/mk -compact
.It Pa .depend