Fix bug 8111 - CIFS VFS: unexpected error on SMB posix open
authorJeremy Allison <jra@samba.org>
Fri, 29 Apr 2011 21:22:54 +0000 (14:22 -0700)
committerKarolin Seeger <kseeger@samba.org>
Fri, 6 May 2011 18:44:51 +0000 (20:44 +0200)
commit37823155157d735356e1f223b425252c956d8c04
treeca7607792eb17d007705a373e8f0c0748a5f8546
parent80078cb6ef2e6976cb5ab25a86157bca22c836a2
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