From c1ba63f2bc30547b65868f9aa1a9dbb0786c9e25 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 5 Jul 2001 06:39:58 +0000 Subject: fixed a bug in the parameters SMBctemp uses in open_file_shared() --- source/smbd/reply.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/smbd/reply.c') diff --git a/source/smbd/reply.c b/source/smbd/reply.c index 1a0ee646018..f991919013c 100644 --- a/source/smbd/reply.c +++ b/source/smbd/reply.c @@ -1910,7 +1910,7 @@ int reply_ctemp(connection_struct *conn, char *inbuf,char *outbuf, int dum_size, /* We should fail if file does not exist. */ fsp = open_file_shared(conn,fname,&sbuf, SET_DENY_MODE(DENY_FCB)|SET_OPEN_MODE(DOS_OPEN_FCB), - FILE_FAIL_IF_NOT_EXIST, + FILE_EXISTS_OPEN|FILE_FAIL_IF_NOT_EXIST, unixmode, oplock_request, NULL, NULL); /* close fd from smb_mkstemp() */ close(tmpfd); -- cgit