Commit 0da83ed7 authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

fix bind tester arglist

Must terminate bind tester args list
parent 42524184
......@@ -896,12 +896,13 @@ main( int argc, char **argv )
bargs[banum - 3] = manager ? manager : "";
bargs[banum - 1] = passwd ? passwd : "";
bargs[banum - 2] = "-b";
bargs[banum - 1] = breqs[jj];
bargs[banum + 0] = "-f";
bargs[banum + 1] = bcreds[jj];
bargs[banum + 2] = "-a";
bargs[banum + 3] = battrs[jj];
bargs[banum + 0] = "-b";
bargs[banum + 1] = breqs[jj];
bargs[banum + 2] = "-f";
bargs[banum + 3] = bcreds[jj];
bargs[banum + 4] = "-a";
bargs[banum + 5] = battrs[jj];
bargs[banum + 6] = NULL;
} else {
bargs[banum - 3] = breqs[jj];
......@@ -1077,6 +1078,13 @@ fork_child( char *prog, char **args )
#endif
execvp( prog, args );
tester_perror( "execvp", NULL );
{ int i;
for (i=0; args[i]; i++);
fprintf(stderr,"%d args\n", i);
for (i=0; args[i]; i++)
fprintf(stderr,"%d %s\n", i, args[i]);
}
exit( EXIT_FAILURE );
break;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment