summaryrefslogtreecommitdiff
path: root/source4/ntvfs
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-10-18 12:24:09 +1100
committerAndrew Tridgell <tridge@samba.org>2009-10-18 15:06:11 +1100
commitedd0ea5225c61b889e48034cc9e10f22006716ce (patch)
tree7654fa738e0384eb33c5adacd581c87e161cd370 /source4/ntvfs
parent8d85757578a21ed93d7604d627e329ddf3e04067 (diff)
downloadsamba-edd0ea5225c61b889e48034cc9e10f22006716ce.tar.gz
samba-edd0ea5225c61b889e48034cc9e10f22006716ce.tar.bz2
samba-edd0ea5225c61b889e48034cc9e10f22006716ce.zip
s4-pvfs: fixed update of stream sizes
The data_blob_free() was changing the size we set the stream to
Diffstat (limited to 'source4/ntvfs')
-rw-r--r--source4/ntvfs/posix/pvfs_streams.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/ntvfs/posix/pvfs_streams.c b/source4/ntvfs/posix/pvfs_streams.c
index 381d2033b0..6b39fb6066 100644
--- a/source4/ntvfs/posix/pvfs_streams.c
+++ b/source4/ntvfs/posix/pvfs_streams.c
@@ -532,11 +532,11 @@ NTSTATUS pvfs_stream_truncate(struct pvfs_state *pvfs,
status = pvfs_xattr_save(pvfs, name->full_name, fd, XATTR_DOSSTREAM_PREFIX,
name->stream_name, &blob);
- data_blob_free(&blob);
if (NT_STATUS_IS_OK(status)) {
status = pvfs_stream_update_size(pvfs, name, fd, blob.length);
}
+ data_blob_free(&blob);
return status;
}