[PATCH] Fix the 32-bit build

Volker Lendecke Volker.Lendecke at SerNet.DE
Fri Jan 19 12:18:12 UTC 2018


Hi!

Review appreciated!

Thanks, Volker

-- 
Besuchen Sie die verinice.XP 2018 in Berlin,
Anwenderkonferenz für Informationssicherheit
vom 21.-23.03.2018 im Sofitel Kurfürstendamm
Info & Anmeldung hier: http://veriniceXP.org

SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de
-------------- next part --------------
From b6feddee7607534081250e99606e7202774891cb Mon Sep 17 00:00:00 2001
From: Volker Lendecke <vl at samba.org>
Date: Fri, 19 Jan 2018 12:15:58 +0000
Subject: [PATCH] vfs_fileid: Fix the 32-bit build

Signed-off-by: Volker Lendecke <vl at samba.org>
---
 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.15.1



More information about the samba-technical mailing list