s3: Avoid an unnecessary ftruncate call
commitfec8505e0be067a09929216cfe476802f21d14fe
authorVolker Lendecke <vl@samba.org>
Thu, 29 Jul 2010 15:04:18 +0000 (29 17:04 +0200)
committerVolker Lendecke <vl@samba.org>
Thu, 29 Jul 2010 20:46:36 +0000 (29 22:46 +0200)
tree43c1187436fcb8a46464d1b24e30fac38917f187
parent4f4303048260ca19a5feef6b9338add1a19fb53c
s3: Avoid an unnecessary ftruncate call

If we just created the file, it has length 0 by definition. This is still done
while holding the share mode lock, so no race around wrt other cifs clients.
source3/smbd/open.c