From 634efc0ffc520594671b32853b097b6e2aa1e1ce Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 19 Jan 2018 12:15:58 +0000 Subject: [PATCH] vfs_fileid: Fix the 32-bit build Bug: https://bugzilla.samba.org/show_bug.cgi?id=13305 Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison (cherry picked from commit c6999a248ad78f75cbfcc0f461298021b20905b4) --- source3/modules/vfs_fileid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/modules/vfs_fileid.c b/source3/modules/vfs_fileid.c index c890876c998..5d08fe97d15 100644 --- a/source3/modules/vfs_fileid.c +++ b/source3/modules/vfs_fileid.c @@ -226,8 +226,8 @@ static uint64_t fileid_device_mapping_hostname(struct fileid_handle_data *data, return UINT64_MAX; } - devname = talloc_asprintf(talloc_tos(), "%s%lu", - hostname, sbuf->st_ex_dev); + devname = talloc_asprintf(talloc_tos(), "%s%ju", + hostname, (uintmax_t)sbuf->st_ex_dev); if (devname == NULL) { DBG_ERR("talloc_asprintf failed\n"); return UINT64_MAX; -- 2.13.6