Skip to content

Commit

Permalink
s3-torture: Remove (incorrect) samba3-specific behavior in samba3.raw…
Browse files Browse the repository at this point in the history
….unlink now the server is correct

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11452

Signed-off-by: Jeremy Allison <[email protected]>
Reviewed-by: Andreas Schneider <[email protected]>
  • Loading branch information
jrasamba authored and cryptomilk committed Oct 21, 2015
1 parent 618d3dd commit e4054f2
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions source4/torture/raw/unlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,7 @@ static bool test_unlink(struct torture_context *tctx, struct smbcli_state *cli)
io.unlink.in.pattern = BASEDIR "\\*.tx?";
io.unlink.in.attrib = 0;
status = smb_raw_unlink(cli->tree, &io);
if (torture_setting_bool(tctx, "samba3", false)) {
CHECK_STATUS(status, NT_STATUS_NO_SUCH_FILE);
}
else {
CHECK_STATUS(status, NT_STATUS_OK);
}
CHECK_STATUS(status, NT_STATUS_OK);

status = smb_raw_unlink(cli->tree, &io);
CHECK_STATUS(status, NT_STATUS_NO_SUCH_FILE);
Expand Down

0 comments on commit e4054f2

Please sign in to comment.