Fix bug 8111 - CIFS VFS: unexpected error on SMB posix open
authorJeremy Allison <jra@samba.org>
Fri, 29 Apr 2011 21:27:32 +0000 (14:27 -0700)
committerJeremy Allison <jra@samba.org>
Fri, 29 Apr 2011 21:31:06 +0000 (23:31 +0200)
commit76739435fc8abf1f47193ec4db35a567b564c785
tree77e3785a6f0adf2336f14d39f53cf02b49a593dc
parentbbacaec4e9365b128eb11467c95412de7473c1ec
Fix bug 8111 - CIFS VFS: unexpected error on SMB posix open

We are conflating the O_CREAT|O_EXCL with the O_TRUNC
processing, they need to be separate. We need to chose
using (O_CREAT|O_EXCL) first, then modify if O_TRUNC is
set. This needs two separate switch statements.

Jeremy
source3/smbd/trans2.c