r20496: Some changes to make Samba3 the RAW-OPEN test. Checking in to both 3_0 and
authorVolker Lendecke <vlendec@samba.org>
Wed, 3 Jan 2007 06:19:11 +0000 (06:19 +0000)
committerVolker Lendecke <vlendec@samba.org>
Wed, 3 Jan 2007 06:19:11 +0000 (06:19 +0000)
commit53bb3ee73d596bc4032041a9e6a7bce667fb8ed2
tree22bbcccf239bb4c687c840ac43b328cabaea8765
parent60e72a4220a06547a75ce610d9c76ce3d7965a74
r20496: Some changes to make Samba3 the RAW-OPEN test. Checking in to both 3_0 and
3_0_24 because I was explicitly asked to, although this needs close
review. Jeremy, I'm sure you will check this thoroughly :-)

In reply_open_and_X the separate "size" variable kills the calculation of the
SPARSE flag returned to the client in the attrib field. In getpathinfo we do
it correctly, and RAW-OPEN (correctly) complains about the difference.

Add the "set the write time" to mknew and create.

For trans2open we were missing the "ofun == 0" ->
NT_STATUS_OBJECT_NAME_COLLISION case, and we dropped the status returned in
favor of ACCESS_DENIED once too many.

Last change is a fix to trans2open: We were returning the attributes given by
the client, not the attributes of the new file.

Volker
source/smbd/reply.c
source/smbd/trans2.c