From b8f9c9e0b0eb7f7be593cdf3a51b9489e5bafa33 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 14 Apr 2003 13:19:51 +0000 Subject: 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) --- source3/torture/torture.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'source3/torture') 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. */ -- cgit