]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
2005-03-29 Thorsten Kukuk <kukuk@suse.de>
authorRoland McGrath <roland@gnu.org>
Tue, 29 Mar 2005 23:28:06 +0000 (23:28 +0000)
committerRoland McGrath <roland@gnu.org>
Tue, 29 Mar 2005 23:28:06 +0000 (23:28 +0000)
* posix/tst-execle1.c (do_test): Fix execle arguments.
* posix/tst-execle2.c (do_test): Likewise.

posix/tst-execle1.c
posix/tst-execle2.c

index adea0a8d466122d1ef291cf9adf0bf5ad5425d08..bacf51b1a2815918393655f9a49ebde1b0fc9e0b 100644 (file)
@@ -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)
     {
index fb9b09b423126fb0d725ee55f9d8b83aea380582..002d4c938fd7856d97201478c344506221eaea7f 100644 (file)
@@ -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)
     {