Fix the erroneous masking of chmod requests via the UNIX extensions.
authorJeremy Allison <jra@samba.org>
Wed, 21 Aug 2013 19:03:25 +0000 (12:03 -0700)
committerJeremy Allison <jra@samba.org>
Mon, 26 Aug 2013 16:01:16 +0000 (09:01 -0700)
commitbd0156988b34feaf91c3046f7ec78f0833222395
treedeea98b8ea5ebbd79eaacbe75317982fbc3fcb2d
parent76142780fb6d69bdf6e15ea27b0436da3fa49fae
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>
source3/smbd/trans2.c