s3: Avoid an unnecessary ftruncate call
commita86e338a048ea70af850e24956f4c461143f336a
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:47:48 +0000 (29 22:47 +0200)
tree1b8d2c0cb3ad85113bddad3e5001cbf7f2593761
parent5bc0db425f71ec8b7a570294b04cb2fb6d27be69
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