Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make ParseGmakeExport: terminate variable at '=', or...
details: https://anonhg.NetBSD.org/src/rev/82813035cdca
branches: trunk
changeset: 785602:82813035cdca
user: sjg <sjg%NetBSD.org@localhost>
date: Fri Mar 22 16:07:59 2013 +0000
description:
ParseGmakeExport: terminate variable at '=', or setenv(3) will fail
on some systems.
diffstat:
usr.bin/make/parse.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (34 lines):
diff -r 57ba023f36bd -r 82813035cdca usr.bin/make/parse.c
--- a/usr.bin/make/parse.c Fri Mar 22 13:46:38 2013 +0000
+++ b/usr.bin/make/parse.c Fri Mar 22 16:07:59 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: parse.c,v 1.187 2013/03/05 22:01:44 christos Exp $ */
+/* $NetBSD: parse.c,v 1.188 2013/03/22 16:07:59 sjg Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -69,14 +69,14 @@
*/
#ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: parse.c,v 1.187 2013/03/05 22:01:44 christos Exp $";
+static char rcsid[] = "$NetBSD: parse.c,v 1.188 2013/03/22 16:07:59 sjg Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)parse.c 8.3 (Berkeley) 3/19/94";
#else
-__RCSID("$NetBSD: parse.c,v 1.187 2013/03/05 22:01:44 christos Exp $");
+__RCSID("$NetBSD: parse.c,v 1.188 2013/03/22 16:07:59 sjg Exp $");
#endif
#endif /* not lint */
#endif
@@ -2461,6 +2461,7 @@
"Variable/Value missing from \"export\"");
return;
}
+ *value++ = '\0'; /* terminate variable */
/*
* Expand the value before putting it in the environment.
Home |
Main Index |
Thread Index |
Old Index