mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 09:09:54 -05:00
MacOSX semaphore names are limited to 31 chars
Including the terminating NUL. Good job documenting that, guys.
This commit is contained in:
parent
0533f80364
commit
5b7c983a66
1 changed files with 2 additions and 2 deletions
|
|
@ -2164,7 +2164,7 @@ mdb_env_setup_locks(MDB_env *env, char *lpath, int mode, int *excl)
|
|||
#else /* _WIN32 */
|
||||
#ifdef __APPLE__
|
||||
char *ptr;
|
||||
sprintf(env->me_txns->mti_rmname, "MDBr%.28s", lpath);
|
||||
sprintf(env->me_txns->mti_rmname, "MDBr%.26s", lpath);
|
||||
ptr = env->me_txns->mti_rmname + sizeof("MDBr")-1;
|
||||
while ((ptr = strchr(ptr, '/')))
|
||||
*ptr++ = '_';
|
||||
|
|
@ -2178,7 +2178,7 @@ mdb_env_setup_locks(MDB_env *env, char *lpath, int mode, int *excl)
|
|||
rc = ErrCode();
|
||||
goto fail;
|
||||
}
|
||||
sprintf(env->me_txns->mti_wmname, "MDBw%.28s", lpath);
|
||||
sprintf(env->me_txns->mti_wmname, "MDBw%.26s", lpath);
|
||||
ptr = env->me_txns->mti_wmname + sizeof("MDBw")-1;
|
||||
while ((ptr = strchr(ptr, '/')))
|
||||
*ptr++ = '_';
|
||||
|
|
|
|||
Loading…
Reference in a new issue