VirtualBox

Changeset 29602 in vbox


Ignore:
Timestamp:
May 18, 2010 9:00:39 AM (15 years ago)
Author:
vboxsync
Message:

process-posix: use crypt_r() instead of crypt()

File:
1 edited

Legend:

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

    r29582 r29602  
    4040#include <signal.h>
    4141#if defined(RT_OS_LINUX)
     42# include <crypt.h>
    4243# include <pwd.h>
    4344# include <shadow.h>
     
    9394        pw->pw_passwd = spwd->sp_pwdp;
    9495
    95     char *pszEncPasswd = crypt(pszPasswd, pw->pw_passwd);
     96    struct crypt_data data;
     97    char *pszEncPasswd = crypt_r(pszPasswd, pw->pw_passwd, &data);
    9698    if (strcmp(pszEncPasswd, pw->pw_passwd))
    9799        return VERR_PERMISSION_DENIED;
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