diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/rpc/spoolss.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c index f57ffe527d..4c8ba0c0f5 100644 --- a/source4/torture/rpc/spoolss.c +++ b/source4/torture/rpc/spoolss.c @@ -3886,6 +3886,7 @@ static bool test_EnumPrinters_findname(struct torture_context *tctx, for (i=0; i < count; i++) { const char *current = NULL; + const char *p; switch (level) { case 1: @@ -3897,6 +3898,19 @@ static bool test_EnumPrinters_findname(struct torture_context *tctx, *found = true; break; } + + p = strrchr(current, '\\'); + if (p) { + if (!e.in.server) { + torture_warning(tctx, + "server returns printername %s incl. servername although we did not set servername", current); + } + p++; + if (strequal(p, name)) { + *found = true; + break; + } + } } return true; |