summaryrefslogtreecommitdiff
path: root/source4/ntvfs/posix/xattr_system.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-05-02 15:59:34 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:16:27 -0500
commit289bc557ebbad8c3ad8b24a37eb48a5d4de43ee2 (patch)
tree35fc180cd49c3cbbba193d46ec7c8bfd0ce9d3f6 /source4/ntvfs/posix/xattr_system.c
parent3716deee4cd487a040db5616b76d500c9bf051be (diff)
downloadsamba-289bc557ebbad8c3ad8b24a37eb48a5d4de43ee2.tar.gz
samba-289bc557ebbad8c3ad8b24a37eb48a5d4de43ee2.tar.bz2
samba-289bc557ebbad8c3ad8b24a37eb48a5d4de43ee2.zip
r6580: fixed the bug that caused the truncation of the main file on a stream
open with openx and the 'truncate if exists' flag (This used to be commit aa82b105d5871b3ca693a0757bb48cc589d88824)
Diffstat (limited to 'source4/ntvfs/posix/xattr_system.c')
-rw-r--r--source4/ntvfs/posix/xattr_system.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/ntvfs/posix/xattr_system.c b/source4/ntvfs/posix/xattr_system.c
index 3b8becf6fe..4101b69ed7 100644
--- a/source4/ntvfs/posix/xattr_system.c
+++ b/source4/ntvfs/posix/xattr_system.c
@@ -37,7 +37,7 @@ NTSTATUS pull_xattr_blob_system(struct pvfs_state *pvfs,
#if HAVE_XATTR_SUPPORT
int ret;
- *blob = data_blob_talloc(mem_ctx, NULL, estimated_size);
+ *blob = data_blob_talloc(mem_ctx, NULL, estimated_size+16);
if (blob->data == NULL) {
return NT_STATUS_NO_MEMORY;
}