summaryrefslogtreecommitdiff
path: root/editors/openoffice.org-2.0/files/patch-ppsprint::source::printergfx::printerjob.cxx
diff options
context:
space:
mode:
authorMartin Blapp <mbr@FreeBSD.org>2002-03-02 21:41:34 +0000
committerMartin Blapp <mbr@FreeBSD.org>2002-03-02 21:41:34 +0000
commitc0bcf00e1bbd6fd33cfeed3b9612b2a5faeb39d1 (patch)
tree1a9f5e7ad35d941f79ae3e514df10ea9db17811d /editors/openoffice.org-2.0/files/patch-ppsprint::source::printergfx::printerjob.cxx
parentUpdate to 0.4.5. (diff)
Another patchset from Carlos Fernando Assis Paniago <pan@cnpm.embrapa.br>
Notes
Notes: svn path=/head/; revision=55416
Diffstat (limited to 'editors/openoffice.org-2.0/files/patch-ppsprint::source::printergfx::printerjob.cxx')
-rw-r--r--editors/openoffice.org-2.0/files/patch-ppsprint::source::printergfx::printerjob.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/editors/openoffice.org-2.0/files/patch-ppsprint::source::printergfx::printerjob.cxx b/editors/openoffice.org-2.0/files/patch-ppsprint::source::printergfx::printerjob.cxx
new file mode 100644
index 000000000000..535e12912b8d
--- /dev/null
+++ b/editors/openoffice.org-2.0/files/patch-ppsprint::source::printergfx::printerjob.cxx
@@ -0,0 +1,14 @@
+--- ../psprint/source/printergfx/printerjob.cxx.orig Sat Mar 2 22:22:50 2002
++++ ../psprint/source/printergfx/printerjob.cxx Sat Mar 2 22:22:40 2002
+@@ -282,7 +282,11 @@
+
+ sal_Bool bSuccess = sal_False;
+
++#ifdef FREEBSD
++ if (pPWEntry = getpwuid(getuid()) != NULL)
++#else
+ if (getpwuid_r(getuid(), &aPWEntry, pPWBuffer, sizeof(pPWBuffer), &pPWEntry) != 0)
++#endif
+ pPWEntry = NULL;
+
+ if (pPWEntry != NULL && pPWEntry->pw_name != NULL)