VirtualBox

Changeset 92758 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Dec 6, 2021 10:17:38 AM (3 years ago)
Author:
vboxsync
Message:

IPRT/RTProcCreateEx/posix: Use 'ASCII' instead of 'C' as the default child codeset, iconv_open doesn't grok 'C' and fails. The dynamic loading of libpam must take shared object versioning into account and not expect the dev library libpam.so to be installed, so use RTLdr for loading it and keep it loaded. Ubuntu needs the session to be opened before we get any locale enviornment bits, so do pam_open_session too. [build fix] bugref:10153

File:
1 edited

Legend:

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

    r92755 r92758  
    9090#endif
    9191#ifdef IPRT_USE_PAM
    92 # ifdef RT_OS_DARWIN
    93 #  include <mach-o/dyld.h>
    94 # endif
    9592# include <security/pam_appl.h>
    9693# include <stdlib.h>
     
    127124#include <iprt/err.h>
    128125#include <iprt/file.h>
    129 #ifdef IPRT_WITH_DYNAMIC_CRYPT_R
     126#if defined(IPRT_WITH_DYNAMIC_CRYPT_R) || defined(IPRT_USE_PAM)
    130127# include <iprt/ldr.h>
    131128#endif
     
    15521549{
    15531550    int rc;
    1554     LogFlow(("RTProcCreateEx: pszExec=%s pszAsUser=%s\n", pszExec, pszAsUser));
     1551    LogFlow(("RTProcCreateEx: pszExec=%s pszAsUser=%s fFlags=%#x phStdIn=%p phStdOut=%p phStdErr=%p\n",
     1552             pszExec, pszAsUser, fFlags, phStdIn, phStdOut, phStdErr));
    15551553
    15561554    /*
     
    16131611        if (aStdFds[i] == i)
    16141612            aStdFds[i] = -1;
     1613    LogFlowFunc(("aStdFds={%d, %d, %d}\n", aStdFds[0], aStdFds[1], aStdFds[2]));
    16151614
    16161615    for (int i = 0; i < 3; i++)
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