Changeset 16561 in vbox for trunk/src/libs/xpcom18a4/ipc/ipcd
- Timestamp:
- Feb 6, 2009 8:03:54 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/ipc/ipcd/shared/src/ipcConfig.cpp
r4106 r16561 40 40 #else 41 41 #include <string.h> 42 #ifdef XP_UNIX 43 #include <unistd.h> 44 #include <sys/types.h> 45 #include <pwd.h> 46 #endif 42 47 #include "ipcConfig.h" 43 48 #include "ipcLog.h" … … 71 76 72 77 logName = PR_GetEnv("VBOX_IPC_SOCKETID"); 78 #if defined(VBOX) && defined(XP_UNIX) 79 if (!logName || !logName[0]) { 80 struct passwd *passStruct = getpwuid(getuid()); 81 if (passStruct) 82 logName = passStruct->pw_name; 83 } 84 #endif 73 85 if (!logName || !logName[0]) { 74 86 logName = PR_GetEnv("LOGNAME");
Note:
See TracChangeset
for help on using the changeset viewer.