summaryrefslogtreecommitdiffstats
path: root/source/smbd/reply.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-11-16 21:41:35 +0000
committerJeremy Allison <jra@samba.org>1998-11-16 21:41:35 +0000
commitb818a399c227befdeeac3722f24320929f1e05b5 (patch)
tree7a45d9dcbf080f8d178e7fd5e0130592fcb0a94d /source/smbd/reply.c
parent7773fbb53738d31d6e2de3060c2326f6af9ec429 (diff)
downloadsamba-b818a399c227befdeeac3722f24320929f1e05b5.tar.gz
samba-b818a399c227befdeeac3722f24320929f1e05b5.tar.xz
samba-b818a399c227befdeeac3722f24320929f1e05b5.zip
Fixed O_EXCL problems with printing and oplocks.
Jeremy.
Diffstat (limited to 'source/smbd/reply.c')
-rw-r--r--source/smbd/reply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/smbd/reply.c b/source/smbd/reply.c
index d466884ab6d..ee0053aed07 100644
--- a/source/smbd/reply.c
+++ b/source/smbd/reply.c
@@ -2728,7 +2728,7 @@ int reply_printopen(connection_struct *conn,
/* Open for exclusive use, write only. */
open_file_shared(fsp,conn,fname2, SET_DENY_MODE(DENY_ALL)|SET_OPEN_MODE(DOS_OPEN_WRONLY),
- (FILE_CREATE_IF_NOT_EXIST|FILE_EXISTS_TRUNCATE), unix_mode(conn,0), 0, NULL, NULL);
+ (FILE_CREATE_IF_NOT_EXIST|FILE_EXISTS_FAIL), unix_mode(conn,0), 0, NULL, NULL);
if (!fsp->open) {
file_free(fsp);