Module Name:    src
Committed By:   sjg
Date:           Fri Mar 22 16:07:59 UTC 2013

Modified Files:
        src/usr.bin/make: parse.c

Log Message:
ParseGmakeExport: terminate variable at '=', or setenv(3) will fail
on some systems.


To generate a diff of this commit:
cvs rdiff -u -r1.187 -r1.188 src/usr.bin/make/parse.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/make/parse.c
diff -u src/usr.bin/make/parse.c:1.187 src/usr.bin/make/parse.c:1.188
--- src/usr.bin/make/parse.c:1.187	Tue Mar  5 22:01:44 2013
+++ src/usr.bin/make/parse.c	Fri Mar 22 16:07:59 2013
@@ -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 @@ ParseGmakeExport(char *line)
 		     "Variable/Value missing from \"export\"");
 	return;
     }
+    *value++ = '\0';			/* terminate variable */
 
     /*
      * Expand the value before putting it in the environment.

Reply via email to