fixed a problem with group policy writes causing policy corruption
commit00a8ff5fe9acf965395b99b39b0c24a5517b6e2b
authorAndrew Tridgell <tridge@samba.org>
Wed, 5 Aug 2009 07:51:21 +0000 (5 17:51 +1000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 5 Aug 2009 07:51:58 +0000 (5 17:51 +1000)
treef544527da4c973658174926191ef630d79208e58
parent0a16265bc21e6f1f8cef4f38b7b45f3fd356527c
fixed a problem with group policy writes causing policy corruption

This bug was caused by two things:

  1) in the unix ACL mapping, we were not taking into account group
  write permssions for the SEC_STD_DELETE flag

  2) when a file is created using OVERWRITE mode, a fchmod() would
  fail if the user is not the file owner. We resolve that by only
  doing the fchmod() if the mapped file attribute does not match the
  desired file attribute
source4/ntvfs/posix/pvfs_acl.c
source4/ntvfs/posix/pvfs_open.c
source4/ntvfs/posix/pvfs_util.c