From edd0ea5225c61b889e48034cc9e10f22006716ce Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 18 Oct 2009 12:24:09 +1100 Subject: s4-pvfs: fixed update of stream sizes The data_blob_free() was changing the size we set the stream to --- source4/ntvfs/posix/pvfs_streams.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit