To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=64906
User pjanik changed the following: What |Old value |New value ================================================================================ Assigned to|ericb |sb -------------------------------------------------------------------------------- Issue type|DEFECT |PATCH -------------------------------------------------------------------------------- Priority|P2 |P1 -------------------------------------------------------------------------------- Target milestone|--- |OOo 2.0.3 -------------------------------------------------------------------------------- ------- Additional comments from [EMAIL PROTECTED] Sun Apr 30 03:50:54 -0700 2006 ------- sb: the real problem is that sysconf(_SC_GETPW_R_SIZE_MAX) returns -1 on Mac OS X. So i propose this patch. Is it OK for you? diff -urN ooo_SRC680_m165_src.orig/sal/osl/unx/security.c ooo_SRC680_m165_src/sal/osl/unx/ security.c --- ooo_SRC680_m165_src.orig/sal/osl/unx/security.c 2006-04-30 11:29:13.000000000 +0200 +++ ooo_SRC680_m165_src/sal/osl/unx/security.c 2006-04-30 11:32:07.000000000 +0200 @@ -68,7 +68,11 @@ static sal_Bool SAL_CALL osl_psz_getConfigDir(oslSecurity Security, sal_Char* pszDirectory, sal_uInt32 nMax); static oslSecurityImpl * newSecurityImpl(size_t * bufSize) { +#ifdef MACOSX + size_t n = 1024; +#else size_t n = (size_t) sysconf(_SC_GETPW_R_SIZE_MAX); +#endif if (n <= SIZE_MAX - offsetof(oslSecurityImpl, m_buffer)) { *bufSize = n; n += offsetof(oslSecurityImpl, m_buffer); or maybe even better is to be pro-active and test returned value and set it to some pre-defined value (like 1024) if it is non-sense (like -1) on all platforms? Raising prio to P1, because this means OOo is not usable on Mac OS X (because of bug in Mac OS X, but anyway ;-). --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]