mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
27 lines
816 B
Diff
27 lines
816 B
Diff
--- ./src/VBox/Runtime/r3/posix/process-creation-posix.cpp.orig
|
|
+++ ./src/VBox/Runtime/r3/posix/process-creation-posix.cpp
|
|
@@ -48,6 +48,9 @@
|
|
* whether it is started detached or not. */
|
|
# define HAVE_POSIX_SPAWN 1
|
|
#endif
|
|
+#if defined(__UCLIBC__)
|
|
+#undef HAVE_POSIX_SPAWN
|
|
+#endif
|
|
#ifdef HAVE_POSIX_SPAWN
|
|
# include <spawn.h>
|
|
#endif
|
|
@@ -103,11 +106,9 @@
|
|
if (spwd)
|
|
pw->pw_passwd = spwd->sp_pwdp;
|
|
|
|
- /* be reentrant */
|
|
- struct crypt_data *data = (struct crypt_data*)RTMemTmpAllocZ(sizeof(*data));
|
|
- char *pszEncPasswd = crypt_r(pszPasswd, pw->pw_passwd, data);
|
|
+ /* NOT reentrant */
|
|
+ char *pszEncPasswd = crypt(pszPasswd, pw->pw_passwd);
|
|
int fCorrect = !strcmp(pszEncPasswd, pw->pw_passwd);
|
|
- RTMemTmpFree(data);
|
|
if (!fCorrect)
|
|
return VERR_PERMISSION_DENIED;
|
|
|