Fix the erroneous masking of chmod requests via the UNIX extensions.
commit335e4178220b848cd822428359b589bc599e81eb
authorJeremy Allison <jra@samba.org>
Wed, 21 Aug 2013 19:03:25 +0000 (21 12:03 -0700)
committerKarolin Seeger <kseeger@samba.org>
Fri, 30 Aug 2013 08:28:29 +0000 (30 10:28 +0200)
tree310ce878522f2841d9ca5e70197a3912459ed55f
parent9891d9870060e61f33a835363dea8f5267d6e8ca
Fix the erroneous masking of chmod requests via the UNIX extensions.

Changed from switch statement to if, as "create mask", "force create mode"
are only applied to new files, not existing ones. "directory mask",
"force directory mode" are only applied to new directories, not existing
ones.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Simo Sorce <idra@samba.org>
(cherry picked from commit bd0156988b34feaf91c3046f7ec78f0833222395)
source3/smbd/trans2.c