]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
VFS: default: use correct type for pathlen in vfswrap_getxattrat_do_sync()
authorRalph Boehme <slow@samba.org>
Mon, 24 Feb 2020 13:30:37 +0000 (14:30 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 25 Feb 2020 17:44:44 +0000 (17:44 +0000)
full_path_tos() returns a ssize_t.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14293

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_default.c

index 69a7eba5015d7c2d112aff6fa4e7cdb5aab1b3d3..bd5d4f3416a273d94f096b2bfff968a4ae6bd611 100644 (file)
@@ -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,