mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 09:54:25 +09:00
tests/pkd: adjust usage of argv strings
Adjust some subtle usage of argv string handling in the pkd
test options: rather than conditionally overwrite the two
mkdtemp strings with a newly-allocated buffer to be later
freed, keep the original const argv pointer around in its
own dedicated field.
See also these changes in the same area that were due to the
previous arrangement, which was a bit too subtle:
- 61ce3310b864802a101cb01ff103f0bc2da936e6
- e1a8b359c1
Addresses:
- https://gitlab.com/libssh/libssh-mirror/-/merge_requests/320#note_1173911211
Signed-off-by: Jon Simons <jon@jonsimons.org>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
@@ -44,10 +44,12 @@ struct pkd_daemon_args {
|
||||
unsigned int iterations;
|
||||
|
||||
struct {
|
||||
const char *argv_mkdtemp_str;
|
||||
char *mkdtemp_str;
|
||||
} socket_wrapper;
|
||||
|
||||
struct {
|
||||
const char *argv_mkdtemp_str;
|
||||
char *mkdtemp_str;
|
||||
} temp_dir;
|
||||
} opts;
|
||||
|
||||
Reference in New Issue
Block a user