Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
0da83ed7
Commit
0da83ed7
authored
Oct 17, 2007
by
Quanah Gibson-Mount
Browse files
fix bind tester arglist
Must terminate bind tester args list
parent
42524184
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/progs/slapd-tester.c
View file @
0da83ed7
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment