We still have no getpwuid_r(). There will be a different fix for this later.
Just a workaround for now.
This commit is contained in:
parent
38cf6ed1e3
commit
5335c17470
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=68492
17 changed files with 255 additions and 0 deletions
|
@ -0,0 +1,15 @@
|
|||
--- ../psprint/source/printergfx/printerjob.cxx.orig Sat Oct 19 14:49:13 2002
|
||||
+++ ../psprint/source/printergfx/printerjob.cxx Sat Oct 19 14:49:18 2002
|
||||
@@ -285,8 +285,12 @@
|
||||
|
||||
sal_Bool bSuccess = sal_False;
|
||||
|
||||
+#ifdef FREEBSD
|
||||
+ pPWEntry = getpwuid( getuid());
|
||||
+#else
|
||||
if (getpwuid_r(getuid(), &aPWEntry, pPWBuffer, sizeof(pPWBuffer), &pPWEntry) != 0)
|
||||
pPWEntry = NULL;
|
||||
+#endif
|
||||
|
||||
if (pPWEntry != NULL && pPWEntry->pw_name != NULL)
|
||||
{
|
|
@ -0,0 +1,15 @@
|
|||
--- ../psprint/source/printergfx/printerjob.cxx.orig Sat Oct 19 14:49:13 2002
|
||||
+++ ../psprint/source/printergfx/printerjob.cxx Sat Oct 19 14:49:18 2002
|
||||
@@ -285,8 +285,12 @@
|
||||
|
||||
sal_Bool bSuccess = sal_False;
|
||||
|
||||
+#ifdef FREEBSD
|
||||
+ pPWEntry = getpwuid( getuid());
|
||||
+#else
|
||||
if (getpwuid_r(getuid(), &aPWEntry, pPWBuffer, sizeof(pPWBuffer), &pPWEntry) != 0)
|
||||
pPWEntry = NULL;
|
||||
+#endif
|
||||
|
||||
if (pPWEntry != NULL && pPWEntry->pw_name != NULL)
|
||||
{
|
|
@ -0,0 +1,15 @@
|
|||
--- ../psprint/source/printergfx/printerjob.cxx.orig Sat Oct 19 14:49:13 2002
|
||||
+++ ../psprint/source/printergfx/printerjob.cxx Sat Oct 19 14:49:18 2002
|
||||
@@ -285,8 +285,12 @@
|
||||
|
||||
sal_Bool bSuccess = sal_False;
|
||||
|
||||
+#ifdef FREEBSD
|
||||
+ pPWEntry = getpwuid( getuid());
|
||||
+#else
|
||||
if (getpwuid_r(getuid(), &aPWEntry, pPWBuffer, sizeof(pPWBuffer), &pPWEntry) != 0)
|
||||
pPWEntry = NULL;
|
||||
+#endif
|
||||
|
||||
if (pPWEntry != NULL && pPWEntry->pw_name != NULL)
|
||||
{
|
|
@ -0,0 +1,15 @@
|
|||
--- ../psprint/source/printergfx/printerjob.cxx.orig Sat Oct 19 14:49:13 2002
|
||||
+++ ../psprint/source/printergfx/printerjob.cxx Sat Oct 19 14:49:18 2002
|
||||
@@ -285,8 +285,12 @@
|
||||
|
||||
sal_Bool bSuccess = sal_False;
|
||||
|
||||
+#ifdef FREEBSD
|
||||
+ pPWEntry = getpwuid( getuid());
|
||||
+#else
|
||||
if (getpwuid_r(getuid(), &aPWEntry, pPWBuffer, sizeof(pPWBuffer), &pPWEntry) != 0)
|
||||
pPWEntry = NULL;
|
||||
+#endif
|
||||
|
||||
if (pPWEntry != NULL && pPWEntry->pw_name != NULL)
|
||||
{
|
|
@ -0,0 +1,15 @@
|
|||
--- ../psprint/source/printergfx/printerjob.cxx.orig Sat Oct 19 14:49:13 2002
|
||||
+++ ../psprint/source/printergfx/printerjob.cxx Sat Oct 19 14:49:18 2002
|
||||
@@ -285,8 +285,12 @@
|
||||
|
||||
sal_Bool bSuccess = sal_False;
|
||||
|
||||
+#ifdef FREEBSD
|
||||
+ pPWEntry = getpwuid( getuid());
|
||||
+#else
|
||||
if (getpwuid_r(getuid(), &aPWEntry, pPWBuffer, sizeof(pPWBuffer), &pPWEntry) != 0)
|
||||
pPWEntry = NULL;
|
||||
+#endif
|
||||
|
||||
if (pPWEntry != NULL && pPWEntry->pw_name != NULL)
|
||||
{
|
|
@ -0,0 +1,15 @@
|
|||
--- ../psprint/source/printergfx/printerjob.cxx.orig Sat Oct 19 14:49:13 2002
|
||||
+++ ../psprint/source/printergfx/printerjob.cxx Sat Oct 19 14:49:18 2002
|
||||
@@ -285,8 +285,12 @@
|
||||
|
||||
sal_Bool bSuccess = sal_False;
|
||||
|
||||
+#ifdef FREEBSD
|
||||
+ pPWEntry = getpwuid( getuid());
|
||||
+#else
|
||||
if (getpwuid_r(getuid(), &aPWEntry, pPWBuffer, sizeof(pPWBuffer), &pPWEntry) != 0)
|
||||
pPWEntry = NULL;
|
||||
+#endif
|
||||
|
||||
if (pPWEntry != NULL && pPWEntry->pw_name != NULL)
|
||||
{
|
|
@ -0,0 +1,15 @@
|
|||
--- ../psprint/source/printergfx/printerjob.cxx.orig Sat Oct 19 14:49:13 2002
|
||||
+++ ../psprint/source/printergfx/printerjob.cxx Sat Oct 19 14:49:18 2002
|
||||
@@ -285,8 +285,12 @@
|
||||
|
||||
sal_Bool bSuccess = sal_False;
|
||||
|
||||
+#ifdef FREEBSD
|
||||
+ pPWEntry = getpwuid( getuid());
|
||||
+#else
|
||||
if (getpwuid_r(getuid(), &aPWEntry, pPWBuffer, sizeof(pPWBuffer), &pPWEntry) != 0)
|
||||
pPWEntry = NULL;
|
||||
+#endif
|
||||
|
||||
if (pPWEntry != NULL && pPWEntry->pw_name != NULL)
|
||||
{
|
|
@ -0,0 +1,15 @@
|
|||
--- ../psprint/source/printergfx/printerjob.cxx.orig Sat Oct 19 14:49:13 2002
|
||||
+++ ../psprint/source/printergfx/printerjob.cxx Sat Oct 19 14:49:18 2002
|
||||
@@ -285,8 +285,12 @@
|
||||
|
||||
sal_Bool bSuccess = sal_False;
|
||||
|
||||
+#ifdef FREEBSD
|
||||
+ pPWEntry = getpwuid( getuid());
|
||||
+#else
|
||||
if (getpwuid_r(getuid(), &aPWEntry, pPWBuffer, sizeof(pPWBuffer), &pPWEntry) != 0)
|
||||
pPWEntry = NULL;
|
||||
+#endif
|
||||
|
||||
if (pPWEntry != NULL && pPWEntry->pw_name != NULL)
|
||||
{
|
|
@ -0,0 +1,15 @@
|
|||
--- ../psprint/source/printergfx/printerjob.cxx.orig Sat Oct 19 14:49:13 2002
|
||||
+++ ../psprint/source/printergfx/printerjob.cxx Sat Oct 19 14:49:18 2002
|
||||
@@ -285,8 +285,12 @@
|
||||
|
||||
sal_Bool bSuccess = sal_False;
|
||||
|
||||
+#ifdef FREEBSD
|
||||
+ pPWEntry = getpwuid( getuid());
|
||||
+#else
|
||||
if (getpwuid_r(getuid(), &aPWEntry, pPWBuffer, sizeof(pPWBuffer), &pPWEntry) != 0)
|
||||
pPWEntry = NULL;
|
||||
+#endif
|
||||
|
||||
if (pPWEntry != NULL && pPWEntry->pw_name != NULL)
|
||||
{
|
|
@ -0,0 +1,15 @@
|
|||
--- ../psprint/source/printergfx/printerjob.cxx.orig Sat Oct 19 14:49:13 2002
|
||||
+++ ../psprint/source/printergfx/printerjob.cxx Sat Oct 19 14:49:18 2002
|
||||
@@ -285,8 +285,12 @@
|
||||
|
||||
sal_Bool bSuccess = sal_False;
|
||||
|
||||
+#ifdef FREEBSD
|
||||
+ pPWEntry = getpwuid( getuid());
|
||||
+#else
|
||||
if (getpwuid_r(getuid(), &aPWEntry, pPWBuffer, sizeof(pPWBuffer), &pPWEntry) != 0)
|
||||
pPWEntry = NULL;
|
||||
+#endif
|
||||
|
||||
if (pPWEntry != NULL && pPWEntry->pw_name != NULL)
|
||||
{
|
|
@ -0,0 +1,15 @@
|
|||
--- ../psprint/source/printergfx/printerjob.cxx.orig Sat Oct 19 14:49:13 2002
|
||||
+++ ../psprint/source/printergfx/printerjob.cxx Sat Oct 19 14:49:18 2002
|
||||
@@ -285,8 +285,12 @@
|
||||
|
||||
sal_Bool bSuccess = sal_False;
|
||||
|
||||
+#ifdef FREEBSD
|
||||
+ pPWEntry = getpwuid( getuid());
|
||||
+#else
|
||||
if (getpwuid_r(getuid(), &aPWEntry, pPWBuffer, sizeof(pPWBuffer), &pPWEntry) != 0)
|
||||
pPWEntry = NULL;
|
||||
+#endif
|
||||
|
||||
if (pPWEntry != NULL && pPWEntry->pw_name != NULL)
|
||||
{
|
|
@ -0,0 +1,15 @@
|
|||
--- ../psprint/source/printergfx/printerjob.cxx.orig Sat Oct 19 14:49:13 2002
|
||||
+++ ../psprint/source/printergfx/printerjob.cxx Sat Oct 19 14:49:18 2002
|
||||
@@ -285,8 +285,12 @@
|
||||
|
||||
sal_Bool bSuccess = sal_False;
|
||||
|
||||
+#ifdef FREEBSD
|
||||
+ pPWEntry = getpwuid( getuid());
|
||||
+#else
|
||||
if (getpwuid_r(getuid(), &aPWEntry, pPWBuffer, sizeof(pPWBuffer), &pPWEntry) != 0)
|
||||
pPWEntry = NULL;
|
||||
+#endif
|
||||
|
||||
if (pPWEntry != NULL && pPWEntry->pw_name != NULL)
|
||||
{
|
|
@ -0,0 +1,15 @@
|
|||
--- ../psprint/source/printergfx/printerjob.cxx.orig Sat Oct 19 14:49:13 2002
|
||||
+++ ../psprint/source/printergfx/printerjob.cxx Sat Oct 19 14:49:18 2002
|
||||
@@ -285,8 +285,12 @@
|
||||
|
||||
sal_Bool bSuccess = sal_False;
|
||||
|
||||
+#ifdef FREEBSD
|
||||
+ pPWEntry = getpwuid( getuid());
|
||||
+#else
|
||||
if (getpwuid_r(getuid(), &aPWEntry, pPWBuffer, sizeof(pPWBuffer), &pPWEntry) != 0)
|
||||
pPWEntry = NULL;
|
||||
+#endif
|
||||
|
||||
if (pPWEntry != NULL && pPWEntry->pw_name != NULL)
|
||||
{
|
|
@ -0,0 +1,15 @@
|
|||
--- ../psprint/source/printergfx/printerjob.cxx.orig Sat Oct 19 14:49:13 2002
|
||||
+++ ../psprint/source/printergfx/printerjob.cxx Sat Oct 19 14:49:18 2002
|
||||
@@ -285,8 +285,12 @@
|
||||
|
||||
sal_Bool bSuccess = sal_False;
|
||||
|
||||
+#ifdef FREEBSD
|
||||
+ pPWEntry = getpwuid( getuid());
|
||||
+#else
|
||||
if (getpwuid_r(getuid(), &aPWEntry, pPWBuffer, sizeof(pPWBuffer), &pPWEntry) != 0)
|
||||
pPWEntry = NULL;
|
||||
+#endif
|
||||
|
||||
if (pPWEntry != NULL && pPWEntry->pw_name != NULL)
|
||||
{
|
|
@ -0,0 +1,15 @@
|
|||
--- ../psprint/source/printergfx/printerjob.cxx.orig Sat Oct 19 14:49:13 2002
|
||||
+++ ../psprint/source/printergfx/printerjob.cxx Sat Oct 19 14:49:18 2002
|
||||
@@ -285,8 +285,12 @@
|
||||
|
||||
sal_Bool bSuccess = sal_False;
|
||||
|
||||
+#ifdef FREEBSD
|
||||
+ pPWEntry = getpwuid( getuid());
|
||||
+#else
|
||||
if (getpwuid_r(getuid(), &aPWEntry, pPWBuffer, sizeof(pPWBuffer), &pPWEntry) != 0)
|
||||
pPWEntry = NULL;
|
||||
+#endif
|
||||
|
||||
if (pPWEntry != NULL && pPWEntry->pw_name != NULL)
|
||||
{
|
|
@ -0,0 +1,15 @@
|
|||
--- ../psprint/source/printergfx/printerjob.cxx.orig Sat Oct 19 14:49:13 2002
|
||||
+++ ../psprint/source/printergfx/printerjob.cxx Sat Oct 19 14:49:18 2002
|
||||
@@ -285,8 +285,12 @@
|
||||
|
||||
sal_Bool bSuccess = sal_False;
|
||||
|
||||
+#ifdef FREEBSD
|
||||
+ pPWEntry = getpwuid( getuid());
|
||||
+#else
|
||||
if (getpwuid_r(getuid(), &aPWEntry, pPWBuffer, sizeof(pPWBuffer), &pPWEntry) != 0)
|
||||
pPWEntry = NULL;
|
||||
+#endif
|
||||
|
||||
if (pPWEntry != NULL && pPWEntry->pw_name != NULL)
|
||||
{
|
|
@ -0,0 +1,15 @@
|
|||
--- ../psprint/source/printergfx/printerjob.cxx.orig Sat Oct 19 14:49:13 2002
|
||||
+++ ../psprint/source/printergfx/printerjob.cxx Sat Oct 19 14:49:18 2002
|
||||
@@ -285,8 +285,12 @@
|
||||
|
||||
sal_Bool bSuccess = sal_False;
|
||||
|
||||
+#ifdef FREEBSD
|
||||
+ pPWEntry = getpwuid( getuid());
|
||||
+#else
|
||||
if (getpwuid_r(getuid(), &aPWEntry, pPWBuffer, sizeof(pPWBuffer), &pPWEntry) != 0)
|
||||
pPWEntry = NULL;
|
||||
+#endif
|
||||
|
||||
if (pPWEntry != NULL && pPWEntry->pw_name != NULL)
|
||||
{
|
Loading…
Reference in a new issue