Commit | Line | Data |
---|---|---|
8f04b7f4 VM |
1 | commit a6f280559f34dc805381507e59c9189b7149b853 |
2 | Author: psmith <psmith> | |
3 | Date: Tue Aug 10 07:35:34 2010 +0000 | |
4 | ||
5 | Fix Savannah bug #30723: expand MAKEFLAGS before we re-exec after | |
6 | rebuilding makefiles. | |
7 | ||
8 | diff --git a/main.c b/main.c | |
9 | index c6989e3..9fe8090 100644 | |
10 | --- a/main.c | |
11 | +++ b/main.c | |
12 | @@ -2093,7 +2093,7 @@ main (int argc, char **argv, char **envp) | |
13 | const char *pv = define_makeflags (1, 1); | |
14 | char *p = alloca (sizeof ("MAKEFLAGS=") + strlen (pv) + 1); | |
15 | sprintf (p, "MAKEFLAGS=%s", pv); | |
16 | - putenv (p); | |
17 | + putenv (allocated_variable_expand (p)); | |
18 | } | |
19 | ||
20 | if (ISDB (DB_BASIC)) |