Changeset 92619 in vbox for trunk/src/VBox/Runtime/r3/posix/process-creation-posix.cpp
- Timestamp:
- Nov 29, 2021 1:53:09 AM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 148511
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/posix/process-creation-posix.cpp
r92618 r92619 1108 1108 } 1109 1109 #ifdef RT_OS_DARWIN 1110 /** @todo r=bird: we should do this for pszAsUserFree == NULL too! */ 1111 if (RT_SUCCESS(rc) && !pszAsUserFree) 1110 if (RT_SUCCESS(rc)) 1112 1111 { 1113 /* We put the "wrong" TMPDIR here now and then let 1114 rtProcPosixAdjustProfileEnvFromChild fix it later on. See 1112 /* TMPDIR is some unique per user directory under /var/folders on darwin, 1113 so get the one for the current user. If we're launching the process as 1114 a different user, rtProcPosixAdjustProfileEnvFromChild will update it 1115 again for the actual child process user (provided we set it here). See 1115 1116 https://opensource.apple.com/source/Libc/Libc-997.1.1/darwin/_dirhelper.c 1116 for the implem ntation of this query. */1117 for the implementation of this query. */ 1117 1118 size_t cbNeeded = confstr(_CS_DARWIN_USER_TEMP_DIR, szTmpPath, sizeof(szTmpPath)); 1118 1119 if (cbNeeded > 0 && cbNeeded < sizeof(szTmpPath))
Note:
See TracChangeset
for help on using the changeset viewer.