summaryrefslogtreecommitdiff
path: root/source3/utils/rpctorture.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1998-10-22 23:05:55 +0000
committerLuke Leighton <lkcl@samba.org>1998-10-22 23:05:55 +0000
commit95056761c8137aa0d0d4f04e862efa7fa94e064c (patch)
tree8a19987bd058624bcddb582291fef4e0c0428db7 /source3/utils/rpctorture.c
parentf0d3a44ffaac2ec5b3299f092d1334d5ada015f2 (diff)
downloadsamba-95056761c8137aa0d0d4f04e862efa7fa94e064c.tar.gz
samba-95056761c8137aa0d0d4f04e862efa7fa94e064c.tar.bz2
samba-95056761c8137aa0d0d4f04e862efa7fa94e064c.zip
torture debug.
(This used to be commit 97609596647dea39c061bdf972411a86f7294521)
Diffstat (limited to 'source3/utils/rpctorture.c')
-rw-r--r--source3/utils/rpctorture.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/source3/utils/rpctorture.c b/source3/utils/rpctorture.c
index 118be4d598..50030bcadc 100644
--- a/source3/utils/rpctorture.c
+++ b/source3/utils/rpctorture.c
@@ -99,6 +99,7 @@ static void rpcclient_stop(void)
****************************************************************************/
void run_enums_test(int num_ops, struct client_info *cli_info, struct cli_state *cli)
{
+ pstring cmd;
int i;
/* establish connections. nothing to stop these being re-established. */
@@ -114,9 +115,22 @@ void run_enums_test(int num_ops, struct client_info *cli_info, struct cli_state
for (i = 0; i < num_ops; i++)
{
+ set_first_token("");
cmd_srv_enum_sess(cli_info);
+ set_first_token("");
cmd_srv_enum_shares(cli_info);
+ set_first_token("");
cmd_srv_enum_files(cli_info);
+
+ if (password[0] != 0)
+ {
+ slprintf(cmd, sizeof(cmd)-1, "1");
+ set_first_token(cmd);
+ }
+ else
+ {
+ set_first_token("");
+ }
cmd_srv_enum_conn(cli_info);
}