Univention Bugzilla – Attachment 10079 Details for
Bug 47495
Improve error message when listener/cache/mdb/maxsize is too large for 32bit system
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
improve_log_message_on_32bit.patch
improve_log_message_on_32bit.patch (text/plain), 921 bytes, created by
Arvid Requate
on 2019-06-24 12:41:51 CEST
(
hide
)
Description:
improve_log_message_on_32bit.patch
Filename:
MIME Type:
Creator:
Arvid Requate
Created:
2019-06-24 12:41:51 CEST
Size:
921 bytes
patch
obsolete
>diff --git a/management/univention-directory-listener/src/cache.c b/management/univention-directory-listener/src/cache.c >index 2edd8df733..96561275c2 100644 >--- a/management/univention-directory-listener/src/cache.c >+++ b/management/univention-directory-listener/src/cache.c >@@ -173,6 +173,11 @@ static size_t determine_mapsize_from_ucr() { > > if ((errno == ERANGE && (mapsize == LONG_MAX || mapsize == LONG_MIN)) || (errno != 0 && mapsize == 0)) { > univention_debug(UV_DEBUG_LISTENER, UV_DEBUG_ERROR, "cache_init: Error parsing value of UCR variable %s as number: %s", ucr_var_mapsize, strerror(errno)); >+#if __SIZEOF_POINTER__ != 8 >+ if (errno == ERANGE && mapsize == LONG_MAX) { >+ univention_debug(UV_DEBUG_LISTENER, UV_DEBUG_ERROR, "cache_init: This is looks like a 32 bit system, where the maximum limit is %d, sorry.", LONG_MAX); >+ } >+#endif > exit(EXIT_FAILURE); > } > if (endptr == mapsize_str) {
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 47495
: 10079