Switched to using the root of /tmp for creating user semaphores.

This commit is contained in:
Juan Carlos Luciani
2006-12-01 05:41:42 +00:00
parent 5d70356a09
commit 74dce09720
3 changed files with 8 additions and 8 deletions

View File

@@ -392,7 +392,7 @@ CreateUserMutex(
// We use Named Semaphores to provide this functionality. The semaphore names are
// linked to the user via its uid.
if (sprintf(g_userNamedSemName, "/tmp/CASA/authtoken/client/semuser_%d", geteuid()) != -1)
if (sprintf(g_userNamedSemName, "/tmp/casa_auth_semuser_%d", geteuid()) != -1)
{
// Create or open semaphore to be only used by the effective user
g_userNamedSem = Local_sem_open((const char*) g_userNamedSemName, O_RDWR | O_CREAT, 0600, 1);