[PATCH 2/7] update scripts/kconfig/*_shipped
Jeremie Koenig
jk at jk.fr.eu.org
Mon Aug 2 04:33:51 UTC 2010
On Mon, Aug 02, 2010 at 02:18:25AM +0200, Denys Vlasenko wrote:
> Well, the patch contains much more changes, which are difficult to check.
> I looked at the changes in fbedacfc8 and it looks like corresponding
> fix to _shipped files is just:
>
> --- a/scripts/kconfig/lex.zconf.c_shipped
> +++ b/scripts/kconfig/lex.zconf.c_shipped
> @@ -265,13 +265,14 @@ static void zconf_endhelp(void)
> */
> FILE *zconf_fopen(const char *name)
> {
> - char *env, fullname[PATH_MAX+1];
> + char *env;
> FILE *f;
>
> f = fopen(name, "r");
> if (!f && name[0] != '/') {
> env = getenv(SRCTREE);
> if (env) {
> + char *fullname = alloca(strlen(env) + strlen(name) + 2);
> sprintf(fullname, "%s/%s", env, name);
> f = fopen(fullname, "r");
> }
>
> I applied the above patch to git. Does it work for you now?
It works for me now, thanks!
--
Jérémie Koenig <jk at jk.fr.eu.org>
More information about the busybox
mailing list