Fix bug #7733 - Invalid client DOS attributes on create can cause incorrect unix...
authorJeremy Allison <jra@samba.org>
Fri, 15 Oct 2010 20:30:07 +0000 (13:30 -0700)
committerKarolin Seeger <kseeger@samba.org>
Wed, 24 Nov 2010 17:10:36 +0000 (18:10 +0100)
commit6b4141e92151adaa0d2ef036657783a99ef517c6
tree7ba90010b5fc61e2a49a135c2232ad0b17cefbde
parentfe5b8a9dc994d3020537f4e68f2105c806cd103b
Fix bug #7733 - Invalid client DOS attributes on create can cause incorrect unix mode_t to be generated.

It turns out a client can send an NTCreateX call for a new file, but specify
FILE_ATTRIBUTE_DIRECTORY in the attribute list. Windows silently strips this,
but we don't - causing the unix_mode() function to go through the "mode bits
for new directory" codepath, instead of the "mode bits for new file" codepath.

Jeremy.
(cherry picked from commit 92adb686372a9b67e47efb5b051bc351212f1780)
source3/smbd/open.c