From ace296b97642d9160ea66db89dcd0f24a21dba4e Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Mon, 24 Feb 2020 14:30:37 +0100 Subject: [PATCH] VFS: default: use correct type for pathlen in vfswrap_getxattrat_do_sync() full_path_tos() returns a ssize_t. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14293 Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- source3/modules/vfs_default.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c index 69a7eba5015..bd5d4f3416a 100644 --- a/source3/modules/vfs_default.c +++ b/source3/modules/vfs_default.c @@ -3330,7 +3330,7 @@ static void vfswrap_getxattrat_do_sync(struct tevent_req *req) char *path = NULL; char *tofree = NULL; char pathbuf[PATH_MAX+1]; - size_t pathlen; + ssize_t pathlen; int err; pathlen = full_path_tos(state->dir_fsp->fsp_name->base_name, -- 2.47.2