[PATCH] Fix the 32-bit build
Jeremy Allison
jra at samba.org
Fri Jan 19 17:55:28 UTC 2018
On Fri, Jan 19, 2018 at 01:18:12PM +0100, Volker Lendecke via samba-technical wrote:
> Hi!
>
> Review appreciated!
LGTM. RB+. Will push if I can ever get an autobuild to
complete again :-(.
Jeremy.
> --
> 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
> 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