summaryrefslogtreecommitdiff
path: root/source4/torture/raw/unlink.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-08-13 02:04:44 +0000
committerAndrew Tridgell <tridge@samba.org>2003-08-13 02:04:44 +0000
commitd2b5b80c951faf9cf0abc66dab14b73b1096734d (patch)
tree8747186353a780b4ef08dc7002e54bf3d50e1ae8 /source4/torture/raw/unlink.c
parent9665caf83276aa8a3115db69342e898fb7b39172 (diff)
downloadsamba-d2b5b80c951faf9cf0abc66dab14b73b1096734d.tar.gz
samba-d2b5b80c951faf9cf0abc66dab14b73b1096734d.tar.bz2
samba-d2b5b80c951faf9cf0abc66dab14b73b1096734d.zip
- cope with servers that don't properly implement SMBexit
- add the pidhigh test to the locking test - expand the rename and unlink testing - test a wider range of offsets in RAW-READ (This used to be commit ef819249ec9849b4609f82a5c882e40c96a51fa2)
Diffstat (limited to 'source4/torture/raw/unlink.c')
-rw-r--r--source4/torture/raw/unlink.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source4/torture/raw/unlink.c b/source4/torture/raw/unlink.c
index 9cae91fe41..889e25777c 100644
--- a/source4/torture/raw/unlink.c
+++ b/source4/torture/raw/unlink.c
@@ -90,6 +90,16 @@ static BOOL test_unlink(struct cli_state *cli, TALLOC_CTX *mem_ctx)
status = smb_raw_unlink(cli->tree, &io);
CHECK_STATUS(status, NT_STATUS_OBJECT_PATH_SYNTAX_BAD);
+ io.in.pattern = "\\..";
+ io.in.attrib = 0;
+ status = smb_raw_unlink(cli->tree, &io);
+ CHECK_STATUS(status, NT_STATUS_OBJECT_PATH_SYNTAX_BAD);
+
+ io.in.pattern = BASEDIR "\\..";
+ io.in.attrib = 0;
+ status = smb_raw_unlink(cli->tree, &io);
+ CHECK_STATUS(status, NT_STATUS_FILE_IS_A_DIRECTORY);
+
printf("Trying wildcards\n");
cli_close(cli, cli_open(cli, fname, O_RDWR|O_CREAT, DENY_NONE));
io.in.pattern = BASEDIR "\\t*.t";