summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-04-05 15:16:22 -0700
committerKarolin Seeger <kseeger@samba.org>2010-05-06 14:08:34 +0200
commitfae056483f76ffca3c93a79c7e7a5a1684a5f670 (patch)
treeb6d2440c7e56b2a59308e3e553798c8ad099756a
parent2b12db6d7d4e88a014af145d68aff7721188d677 (diff)
downloadsamba-fae056483f76ffca3c93a79c7e7a5a1684a5f670.tar.gz
s3: Fix bug 7326 -- can't write with vfs_full_audit active
(cherry picked from commit d232dd9df261ff251fd624b2b984355d247bb301)
-rw-r--r--source3/modules/vfs_full_audit.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/modules/vfs_full_audit.c b/source3/modules/vfs_full_audit.c
index ebe89ec5fd8..ac7f7a3cc87 100644
--- a/source3/modules/vfs_full_audit.c
+++ b/source3/modules/vfs_full_audit.c
@@ -158,7 +158,7 @@ static int smb_full_audit_fstat(vfs_handle_struct *handle, files_struct *fsp,
SMB_STRUCT_STAT *sbuf);
static int smb_full_audit_lstat(vfs_handle_struct *handle,
const char *path, SMB_STRUCT_STAT *sbuf);
-static int smb_full_audit_get_alloc_size(vfs_handle_struct *handle,
+static uint64_t smb_full_audit_get_alloc_size(vfs_handle_struct *handle,
files_struct *fsp, const SMB_STRUCT_STAT *sbuf);
static int smb_full_audit_unlink(vfs_handle_struct *handle,
const char *path);
@@ -1396,14 +1396,14 @@ static int smb_full_audit_lstat(vfs_handle_struct *handle,
return result;
}
-static int smb_full_audit_get_alloc_size(vfs_handle_struct *handle,
+static uint64_t smb_full_audit_get_alloc_size(vfs_handle_struct *handle,
files_struct *fsp, const SMB_STRUCT_STAT *sbuf)
{
- int result;
+ uint64_t result;
result = SMB_VFS_NEXT_GET_ALLOC_SIZE(handle, fsp, sbuf);
- do_log(SMB_VFS_OP_GET_ALLOC_SIZE, (result >= 0), handle, "%d", result);
+ do_log(SMB_VFS_OP_GET_ALLOC_SIZE, (result != (uint64_t)-1), handle, "%llu", result);
return result;
}