diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2017-01-24 12:27:45 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-01-24 12:30:02 +0000 |
commit | 54c94a12e787b5999338e00b50967103032f722e (patch) | |
tree | 0df51903fecda4f6f95a45e36b8c60f588248882 /community/virtualbox-guest-additions/uclibc-spawn.patch | |
parent | 262629094f233d25f4c19ed7a07f556f5763b58d (diff) | |
download | aports-54c94a12e787b5999338e00b50967103032f722e.tar.bz2 aports-54c94a12e787b5999338e00b50967103032f722e.tar.xz |
community/virtualbox-guest-*: move from testing
ref #5722
Diffstat (limited to 'community/virtualbox-guest-additions/uclibc-spawn.patch')
-rw-r--r-- | community/virtualbox-guest-additions/uclibc-spawn.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/community/virtualbox-guest-additions/uclibc-spawn.patch b/community/virtualbox-guest-additions/uclibc-spawn.patch new file mode 100644 index 0000000000..98b4e8ad6e --- /dev/null +++ b/community/virtualbox-guest-additions/uclibc-spawn.patch @@ -0,0 +1,26 @@ +--- ./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; + |