The Samba-Bugzilla – Attachment 18803 Details for
Bug 15976
time_t related build failure on 32bit arch in 4.24.0rc1
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for 4.24
0001-printing-Fix-compilation-error-for-native-32-bit-tim.patch (text/plain), 2.25 KB, created by
Douglas Bagnall
on 2026-01-21 20:32:41 UTC
(
hide
)
Description:
patch for 4.24
Filename:
MIME Type:
Creator:
Douglas Bagnall
Created:
2026-01-21 20:32:41 UTC
Size:
2.25 KB
patch
obsolete
>From e9b5215fa01de038f7c273006129043a0466f231 Mon Sep 17 00:00:00 2001 >From: Michael Tokarev <mjt@tls.msk.ru> >Date: Wed, 21 Jan 2026 10:35:15 +0530 >Subject: [PATCH] printing: Fix compilation error for native 32-bit time_t >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >commit#e9a7dce599eb12d broke samba compilation for 32-bit time_t. > >BUG: https://bugzilla.samba.org/show_bug.cgi?id=15976 >Used correct pointer type to fix the warning to fix compialtion. > >Pair-Programmed-With: Vinit Agnihotri <vagnihot@redhat.com> >Signed-off-by: Michael Tokarev <mjt@tls.msk.ru> >Signed-off-by: Vinit Agnihotri <vagnihot@redhat.com> >Reviewed-by: Günther Deschner <gd@samba.org> >Reviewed-by: Volker Lendecke <vl@samba.org> > >Autobuild-User(master): Volker Lendecke <vl@samba.org> >Autobuild-Date(master): Wed Jan 21 19:23:29 UTC 2026 on atb-devel-224 >--- > source3/printing/printing.c | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > >diff --git a/source3/printing/printing.c b/source3/printing/printing.c >index a9e8422efab..bcfd893456b 100644 >--- a/source3/printing/printing.c >+++ b/source3/printing/printing.c >@@ -59,6 +59,7 @@ static int fetch_share_cache_time(const char *key_name, > time_t *curr_time) > { > char *key = NULL; >+ int64_t curr_time64 = -1; > > key = talloc_asprintf(NULL, "%s/%s", key_name, sharename); > if (key == NULL) { >@@ -66,11 +67,12 @@ static int fetch_share_cache_time(const char *key_name, > return -1; > } > >- if (tdb_fetch_int64(tdb, key, curr_time) != 0) { >+ if (tdb_fetch_int64(tdb, key, &curr_time64) != 0) { > DBG_ERR("No timing record found for[%s]!\n", sharename); > TALLOC_FREE(key); > return -1; > } >+ *curr_time = curr_time64; > > TALLOC_FREE(key); > return 0; >@@ -82,6 +84,7 @@ static int update_share_cache_time(const char *key_name, > time_t curr_time) > { > char *key = NULL; >+ int64_t curr_time64 = curr_time; > > key = talloc_asprintf(NULL, "%s/%s", key_name, sharename); > if (key == NULL) { >@@ -89,7 +92,7 @@ static int update_share_cache_time(const char *key_name, > return -1; > } > >- if (tdb_store_int64(tdb, key, (int64_t)curr_time) != 0) { >+ if (tdb_store_int64(tdb, key, curr_time64) != 0) { > DBG_ERR("Unable to update print cache for %s\n", sharename); > TALLOC_FREE(key); > return -1; >-- >2.43.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
gary
:
review+
Actions:
View
Attachments on
bug 15976
: 18803