Fix bug #8144 - touch /mnt/newfile fails to set timestamp with CIFS client.
authorJeremy Allison <jra@samba.org>
Tue, 17 May 2011 23:18:51 +0000 (16:18 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 18 May 2011 00:22:32 +0000 (02:22 +0200)
commit28734295557620c36ffe8f51dcef7158c46d78a0
tree6baa57f38719f032d0e0ca9c7088e50ce307ec97
parent87a1888272127b53bab61a6e69023e67bdfca8d1
Fix bug #8144 - touch /mnt/newfile fails to set timestamp with CIFS client.

The extra checks added for Windows correctness in our metadata changing paths
to ensure the file handle has been opened with the correct access mask to
allow FILE_WRITE_ATTRIBUTES etc. caused problems with the POSIX open code.

The old POSIX open code maped O_RDONLY into FILE_READ, O_WRONLY into FILE_WRITE,
and O_RDWR into FILE_READ|FILE_WRITE. This patch extends the mapping to add
FILE_WRITE_ATTRIBUTES, FILE_READ_ATTRIBUTES and FILE_WRITE_EA, FILE_READ_EA to
allow POSIX opens to set these values.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed May 18 02:22:32 CEST 2011 on sn-devel-104
source3/smbd/trans2.c