summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-04-14 13:19:51 +0000
committerJeremy Allison <jra@samba.org>2003-04-14 13:19:51 +0000
commitb8f9c9e0b0eb7f7be593cdf3a51b9489e5bafa33 (patch)
tree65f43964b206cc33dc06884d711ea03efa2259ec
parentbe653a1017f9df3685e5fbae3984b39723c359c6 (diff)
downloadsamba-b8f9c9e0b0eb7f7be593cdf3a51b9489e5bafa33.tar.gz
samba-b8f9c9e0b0eb7f7be593cdf3a51b9489e5bafa33.tar.bz2
samba-b8f9c9e0b0eb7f7be593cdf3a51b9489e5bafa33.zip
Try and create a file with different vuid, same cnum. Not yet sure
if this should succeed, so just print result until we test against Win2003. Jeremy. (This used to be commit 57682f32b1bb186ab356494fcc4fdabd1d1721e6)
-rw-r--r--source3/torture/torture.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index 00d5b86ff8..94ee4dc791 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -1959,7 +1959,9 @@ static BOOL run_fdsesstest(int dummy)
uint16 new_cnum;
uint16 saved_cnum;
const char *fname = "\\fdsess.tst";
+ const char *fname1 = "\\fdsess1.tst";
int fnum1;
+ int fnum2;
pstring buf;
BOOL ret = True;
@@ -1979,6 +1981,7 @@ static BOOL run_fdsesstest(int dummy)
printf("starting fdsesstest\n");
cli_unlink(cli, fname);
+ cli_unlink(cli, fname1);
fnum1 = cli_open(cli, fname, O_RDWR|O_CREAT|O_EXCL, DENY_NONE);
if (fnum1 == -1) {
@@ -1999,6 +2002,16 @@ static BOOL run_fdsesstest(int dummy)
buf);
ret = False;
}
+ /* Try to open a file with different vuid, samba cnum. */
+ fnum2 = cli_open(cli, fname1, O_RDWR|O_CREAT|O_EXCL, DENY_NONE);
+ if (fnum2 != -1) {
+ printf("create with different vuid, same cnum succeeded.\n");
+ cli_close(cli, fnum2);
+ cli_unlink(cli, fname1);
+ } else {
+ printf("create with different vuid, same cnum failed.\n");
+ }
+
cli->vuid = saved_vuid;
/* Try with same vuid, different cnum. */