From e8b5cb45155536107a71e1106ad4a624eb559496 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 8 Jan 2000 10:15:53 +0000 Subject: cli_open() wasn't handling DENY_FCB or O_WRONLY correctly. After fixing that I needed to use O_RDWR instead of O_WRONLY in several places to avoid the silly bug in MS servers that doesn't allow getattrE on a file opened with O_WRONLY (This used to be commit e21aa4cb088f348139309d29c85c48c8b777cff5) --- source3/utils/torture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/utils') diff --git a/source3/utils/torture.c b/source3/utils/torture.c index e5e300930a..e45f4cb568 100644 --- a/source3/utils/torture.c +++ b/source3/utils/torture.c @@ -749,7 +749,7 @@ static void run_denytest(int dummy) cli_unlink(&cli1, fname); - fnum1 = cli_open(&cli1, fname, O_WRONLY|O_CREAT, DENY_NONE); + fnum1 = cli_open(&cli1, fname, O_RDWR|O_CREAT, DENY_NONE); cli_write(&cli1, fnum1, 0, fname, 0, strlen(fname)); cli_close(&cli1, fnum1); -- cgit