vfs_fileid: Fix the 32-bit build
authorVolker Lendecke <vl@samba.org>
Fri, 19 Jan 2018 12:15:58 +0000 (12:15 +0000)
committerStefan Metzmacher <metze@samba.org>
Tue, 27 Feb 2018 15:00:11 +0000 (16:00 +0100)
Bug: https://bugzilla.samba.org/show_bug.cgi?id=13305

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit c6999a248ad78f75cbfcc0f461298021b20905b4)

source3/modules/vfs_fileid.c

index c890876c998e4c7b17a1efc51d09b72a3fbdcaa7..5d08fe97d1552068b6b6886d447c65c2eae9efc1 100644 (file)
@@ -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;