summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-04-05 13:50:59 -0700
committerJeremy Allison <jra@samba.org>2010-04-05 13:50:59 -0700
commit2754a8e2b60fb07ebec6384fc3c3a7c3450de5b3 (patch)
tree3bce68a82fa6bc29421191b2b8969bcda804edc5 /source3/modules
parent3ccecdd650eb039204d27ac8f978d13a4cf57b56 (diff)
downloadsamba-2754a8e2b60fb07ebec6384fc3c3a7c3450de5b3.tar.gz
samba-2754a8e2b60fb07ebec6384fc3c3a7c3450de5b3.tar.bz2
samba-2754a8e2b60fb07ebec6384fc3c3a7c3450de5b3.zip
Fix related to bug #7326 - can't read/write any files with full_audit
Diffstat (limited to 'source3/modules')
-rw-r--r--source3/modules/vfs_full_audit.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/modules/vfs_full_audit.c b/source3/modules/vfs_full_audit.c
index 6986a86c2d..8a93695a81 100644
--- a/source3/modules/vfs_full_audit.c
+++ b/source3/modules/vfs_full_audit.c
@@ -1083,11 +1083,12 @@ static int smb_full_audit_lstat(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;
}