From: Roland McGrath Date: Tue, 29 Mar 2005 23:28:06 +0000 (+0000) Subject: 2005-03-29 Thorsten Kukuk X-Git-Tag: cvs/glibc-2_3_5~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc9019d3aedfbed790747686eed9999d7b0429bc;p=thirdparty%2Fglibc.git 2005-03-29 Thorsten Kukuk * posix/tst-execle1.c (do_test): Fix execle arguments. * posix/tst-execle2.c (do_test): Likewise. --- diff --git a/posix/tst-execle1.c b/posix/tst-execle1.c index adea0a8d466..bacf51b1a28 100644 --- a/posix/tst-execle1.c +++ b/posix/tst-execle1.c @@ -6,8 +6,9 @@ static int do_test (void) { static const char prog[] = "does-not-exist"; + char *env [] = {"FOO=BAR", NULL}; errno = 0; - execle (prog, prog, NULL, "FOO=BAR", NULL); + execle (prog, prog, NULL, env); if (errno != ENOENT) { diff --git a/posix/tst-execle2.c b/posix/tst-execle2.c index fb9b09b4231..002d4c938fd 100644 --- a/posix/tst-execle2.c +++ b/posix/tst-execle2.c @@ -45,8 +45,9 @@ prepare (int argc, char *argv[]) static int do_test (void) { + char *env[] = {"FOO=BAR", NULL}; errno = 0; - execle (copy, copy, NULL, "FOO=BAR", NULL); + execle (copy, copy, NULL, env); if (errno != EACCES) {