VirtualBox

Ignore:
Timestamp:
Nov 29, 2021 1:53:09 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
148511
Message:

IPRT/RTProcCreateEx/darwin: Always set TMPDIR when constructing a RTPROC_FLAGS_PROFILE environment, regardless of it's for a different user or not. bugref:10153

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/posix/process-creation-posix.cpp

    r92618 r92619  
    11081108                        }
    11091109#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))
    11121111                        {
    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
    11151116                               https://opensource.apple.com/source/Libc/Libc-997.1.1/darwin/_dirhelper.c
    1116                                for the implemntation of this query. */
     1117                               for the implementation of this query. */
    11171118                            size_t cbNeeded = confstr(_CS_DARWIN_USER_TEMP_DIR, szTmpPath, sizeof(szTmpPath));
    11181119                            if (cbNeeded > 0 && cbNeeded < sizeof(szTmpPath))
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette