s4-smbtorture: setup help and dependent files in spoolss driver unc path tests.
authorGünther Deschner <gd@samba.org>
Fri, 24 Dec 2010 00:22:24 +0000 (01:22 +0100)
committerGünther Deschner <gd@samba.org>
Tue, 4 Jan 2011 09:33:55 +0000 (10:33 +0100)
Guenther

source4/torture/rpc/spoolss.c

index 31b7baf5da5d421f38ae404c9b1c18ee79f94fde..750783b3cb9f787b31dc1392fdc7b382e6e18917 100644 (file)
@@ -9035,6 +9035,14 @@ static bool test_add_driver_arg(struct torture_context *tctx,
        if (d->info8.config_file) {
                info8.config_file       = talloc_asprintf(tctx, "%s\\%s", d->remote.driver_directory, d->info8.config_file);
        }
+       if (d->info8.help_file) {
+               info8.help_file = talloc_asprintf(tctx, "%s\\%s", d->remote.driver_directory, d->info8.help_file);
+       }
+       if (d->info8.dependent_files && d->info8.dependent_files->string) {
+               for (i=0; d->info8.dependent_files->string[i] != NULL; i++) {
+                       info8.dependent_files->string[i] = talloc_asprintf(tctx, "%s\\%s", d->remote.driver_directory, d->info8.dependent_files->string[i]);
+               }
+       }
 
        for (i=0; i < ARRAY_SIZE(levels); i++) {