s3 setfileinfo: Open with FILE_WRITE_DATA when setting the file size
authorTim Prouty <tprouty@samba.org>
Wed, 25 Nov 2009 00:48:16 +0000 (16:48 -0800)
committerTim Prouty <tprouty@samba.org>
Wed, 25 Nov 2009 16:45:58 +0000 (08:45 -0800)
commitaf610a6f263994e7a0ded8acf0fa9237d5b7d366
treee2697edbbeb8eb001b7b9d21c6bbc1519bae0944
parentb6f972222f271263f68cf5ead8bb0daca08158fa
s3 setfileinfo: Open with FILE_WRITE_DATA when setting the file size

This matches what is outlined here:
http://msdn.microsoft.com/en-us/library/ms804363.aspx

This is also inline with how winXP/win7 handle this.  See
RAW-SFILEINFO-END-OF-FILE* in smbtorture4.
source3/smbd/trans2.c