From: Ralph Boehme Date: Mon, 24 Feb 2020 13:30:37 +0000 (+0100) Subject: VFS: default: use correct type for pathlen in vfswrap_getxattrat_do_sync() X-Git-Tag: ldb-2.2.0~1610 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ace296b97642d9160ea66db89dcd0f24a21dba4e;p=thirdparty%2Fsamba.git 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 --- 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,