r5539: more bad name checks and don't check for \\localhost and \\127.0.0.1
authorStefan Metzmacher <metze@samba.org>
Thu, 24 Feb 2005 15:06:30 +0000 (15:06 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:10:53 +0000 (13:10 -0500)
we maybe use this in the build farm

metze
(This used to be commit 98e32260f5f4bf3b66fd9238c061618a3b49197c)

source4/torture/rpc/spoolss.c

index eb4b3c5da9ba2dc115ae036c36b4de6c494ff30e..869b0abc6c3538a1244e13168ae5439d1c645f0d 100644 (file)
@@ -709,9 +709,10 @@ static BOOL test_OpenPrinter_badnames(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx
        char *name;
 
        ret &= test_OpenPrinter_badname(p, mem_ctx, "__INVALID_PRINTER__");
        char *name;
 
        ret &= test_OpenPrinter_badname(p, mem_ctx, "__INVALID_PRINTER__");
-       ret &= test_OpenPrinter_badname(p, mem_ctx, "\\\\127.0.0.1");
-       ret &= test_OpenPrinter_badname(p, mem_ctx, "\\\\localhost");
+       ret &= test_OpenPrinter_badname(p, mem_ctx, "\\\\__INVALID_HOST__");
        ret &= test_OpenPrinter_badname(p, mem_ctx, "");
        ret &= test_OpenPrinter_badname(p, mem_ctx, "");
+       ret &= test_OpenPrinter_badname(p, mem_ctx, "\\\\\\");
+       ret &= test_OpenPrinter_badname(p, mem_ctx, "\\\\\\__INVALID_PRINTER__");
 
        name = talloc_asprintf(mem_ctx, "\\\\%s\\", dcerpc_server_name(p));
        ret &= test_OpenPrinter_badname(p, mem_ctx, name);
 
        name = talloc_asprintf(mem_ctx, "\\\\%s\\", dcerpc_server_name(p));
        ret &= test_OpenPrinter_badname(p, mem_ctx, name);