Fix bug found against the new Mac client @ Connectathon. Mac clients
commitd4d8a55009a78c1b51d6d4ea175e6cce22c2efd5
authorJeremy Allison <jra@samba.org>
Wed, 23 Feb 2011 00:38:42 +0000 (22 16:38 -0800)
committerJeremy Allison <jra@samba.org>
Wed, 23 Feb 2011 00:42:12 +0000 (22 16:42 -0800)
treeb419aa613ed3a7873c087e89eb705063355770af
parent776f83ee3d4d1e92b0e9f886d4d3e75c0fd77154
Fix bug found against the new Mac client @ Connectathon. Mac clients
don't open with FILE_WRITE_ATTRIBUTES when just doing a write, so updating
the write time on close fails as smb_set_file_time() now (correctly) checks
for FILE_WRITE_ATTRIBUTES in the access_mask before allowing client time
update. This is an internal time update being done on a close, not a handle-based
client request.
(cherry picked from commit 064a46c8ebf7a93805200d665b748ceff44be628)
source3/smbd/close.c