diff options
author | Günther Deschner <gd@samba.org> | 2010-12-24 01:25:49 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2011-01-04 10:33:56 +0100 |
commit | 64576106b10b8cde8970d82301fba66c0ee1995e (patch) | |
tree | 9f316df7f43b9a8ff0aee99f7df0664a7404b90a /source4/torture | |
parent | 69174fea5b2c580356693d33b2ab980a44a34259 (diff) | |
download | samba-64576106b10b8cde8970d82301fba66c0ee1995e.tar.gz samba-64576106b10b8cde8970d82301fba66c0ee1995e.tar.bz2 samba-64576106b10b8cde8970d82301fba66c0ee1995e.zip |
s4-smbtorture: always setup full driver level 8 in test_add_driver_arg().
Guenther
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/rpc/spoolss.c | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c index a6b84c4012..d951661185 100644 --- a/source4/torture/rpc/spoolss.c +++ b/source4/torture/rpc/spoolss.c @@ -8988,12 +8988,19 @@ static bool test_add_driver_arg(struct torture_context *tctx, upload_printer_driver(tctx, dcerpc_server_name(p), d), "failed to upload printer driver"); - info8.version = d->info8.version; - info8.driver_name = d->info8.driver_name; - info8.architecture = d->local.environment; - info8.driver_path = d->info8.driver_path; - info8.data_file = d->info8.data_file; - info8.config_file = d->info8.config_file; + info8 = d->info8; + if (d->info8.dependent_files) { + info8.dependent_files = talloc_zero(tctx, struct spoolss_StringArray); + if (d->info8.dependent_files->string) { + for (i=0; d->info8.dependent_files->string[i] != NULL; i++) { + } + info8.dependent_files->string = talloc_zero_array(info8.dependent_files, const char *, i+1); + for (i=0; d->info8.dependent_files->string[i] != NULL; i++) { + info8.dependent_files->string[i] = talloc_strdup(info8.dependent_files->string, d->info8.dependent_files->string[i]); + } + } + } + info8.architecture = d->local.environment; for (i=0; i < ARRAY_SIZE(levels); i++) { |