View | Details | Raw Unified | Return to bug 47495
Collapse All | Expand All

(-)a/management/univention-directory-listener/src/cache.c (+5 lines)
 Lines 173-178   static size_t determine_mapsize_from_ucr() { Link Here 
173
173
174
		if ((errno == ERANGE && (mapsize == LONG_MAX || mapsize == LONG_MIN)) || (errno != 0 && mapsize == 0)) {
174
		if ((errno == ERANGE && (mapsize == LONG_MAX || mapsize == LONG_MIN)) || (errno != 0 && mapsize == 0)) {
175
			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));
175
			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));
176
#if __SIZEOF_POINTER__ != 8
177
			if (errno == ERANGE && mapsize == LONG_MAX) {
178
				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);
179
			}
180
#endif
176
			exit(EXIT_FAILURE);
181
			exit(EXIT_FAILURE);
177
		}
182
		}
178
		if (endptr == mapsize_str) {
183
		if (endptr == mapsize_str) {

Return to bug 47495