svn commit: samba r18345 - in
branches/SAMBA_4_0/source/torture/rpc: .
idra at samba.org
idra at samba.org
Sun Sep 10 22:06:50 GMT 2006
Author: idra
Date: 2006-09-10 22:06:49 +0000 (Sun, 10 Sep 2006)
New Revision: 18345
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18345
Log:
test also flags
Modified:
branches/SAMBA_4_0/source/torture/rpc/srvsvc.c
Changeset:
Modified: branches/SAMBA_4_0/source/torture/rpc/srvsvc.c
===================================================================
--- branches/SAMBA_4_0/source/torture/rpc/srvsvc.c 2006-09-10 21:51:46 UTC (rev 18344)
+++ branches/SAMBA_4_0/source/torture/rpc/srvsvc.c 2006-09-10 22:06:49 UTC (rev 18345)
@@ -786,6 +786,7 @@
/* valid path types only between 1 and 13 */
for (i = 1; i < 14; i++) {
+again:
/* Find maximum length accepted by this type */
r.in.name_type = i;
r.in.name = talloc_strdup(mem_ctx, "A");
@@ -809,7 +810,7 @@
talloc_free(r.in.name);
- printf("Maximum length for type %d: %d\n", i, n);
+ printf("Maximum length for type %2d, flags %08x: %d\n", i, r.in.flags, n);
/* find invalid chars for this type check only ASCII between 0x20 and 0x7e */
@@ -832,7 +833,15 @@
talloc_free(r.in.name);
}
- printf("Invalid chars for type %d: %s\n", i, invalidc);
+ printf(" Invalid chars for type %2d, flags %08x: \"%s\"\n", i, r.in.flags, invalidc);
+
+ /* only two values are accepted for flags: 0x0 and 0x80000000 */
+ if (r.in.flags == 0x0) {
+ r.in.flags = 0x80000000;
+ goto again;
+ }
+
+ r.in.flags = 0x0;
}
return True;
More information about the samba-cvs
mailing list