From 59735cf787f970395b4b36ca485ab42a4939a5dd Mon Sep 17 00:00:00 2001 From: David Disseldorp Date: Fri, 10 May 2019 13:18:49 +0200 Subject: [PATCH] vfs_ceph: fix cephwrap_flistxattr() debug message The @list buffer may be uninitialised prior to ceph_flistxattr() invocation, so only log the address. Bug: https://bugzilla.samba.org/show_bug.cgi?id=13940 Signed-off-by: David Disseldorp --- source3/modules/vfs_ceph.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source3/modules/vfs_ceph.c b/source3/modules/vfs_ceph.c index 57de8bc891a..6f29629566e 100644 --- a/source3/modules/vfs_ceph.c +++ b/source3/modules/vfs_ceph.c @@ -1315,7 +1315,8 @@ static ssize_t cephwrap_listxattr(struct vfs_handle_struct *handle, static ssize_t cephwrap_flistxattr(struct vfs_handle_struct *handle, struct files_struct *fsp, char *list, size_t size) { int ret; - DBG_DEBUG("[CEPH] flistxattr(%p, %p, %s, %llu)\n", handle, fsp, list, llu(size)); + DBG_DEBUG("[CEPH] flistxattr(%p, %p, %p, %llu)\n", + handle, fsp, list, llu(size)); #if LIBCEPHFS_VERSION_CODE >= LIBCEPHFS_VERSION(0, 94, 0) ret = ceph_flistxattr(handle->data, fsp->fh->fd, list, size); #else -- 2.16.4