- use deltree to setup base directory
authorAndrew Tridgell <tridge@samba.org>
Mon, 29 Sep 2003 06:02:25 +0000 (06:02 +0000)
committerAndrew Tridgell <tridge@samba.org>
Mon, 29 Sep 2003 06:02:25 +0000 (06:02 +0000)
(This used to be commit 19eab118c1e73a0c5142ff10f7cf5ecae97349ac)

source4/torture/utable.c

index 38e381de9b9560ea43afb2d37de4898252f77134..317d7a80ccca0a1e50bf34b2b7607ba04a82ef78 100644 (file)
@@ -132,8 +132,7 @@ BOOL torture_casetable(int dummy)
 
        memset(equiv, 0, sizeof(equiv));
 
-       cli_unlink(cli, "\\utable\\*");
-       cli_rmdir(cli, "\\utable");
+       cli_deltree(cli, "\\utable");
        if (!cli_mkdir(cli, "\\utable")) {
                printf("Failed to create utable directory!\n");
                return False;
@@ -148,7 +147,11 @@ BOOL torture_casetable(int dummy)
 
                fname = form_name(c);
                fnum = cli_nt_create_full(cli, fname, 0,
-                                         GENERIC_RIGHTS_FILE_ALL_ACCESS, 
+#if 0
+                                         SEC_RIGHT_MAXIMUM_ALLOWED, 
+#else
+                                         GENERIC_RIGHTS_FILE_ALL_ACCESS,
+#endif
                                          FILE_ATTRIBUTE_NORMAL,
                                          NTCREATEX_SHARE_ACCESS_NONE,
                                          NTCREATEX_DISP_OPEN_IF, 0, 0);