aboutsummaryrefslogtreecommitdiff
path: root/x11/kdelibs4/files/patch-kio_kfile_kpropertiesdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'x11/kdelibs4/files/patch-kio_kfile_kpropertiesdialog.cpp')
-rw-r--r--x11/kdelibs4/files/patch-kio_kfile_kpropertiesdialog.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/x11/kdelibs4/files/patch-kio_kfile_kpropertiesdialog.cpp b/x11/kdelibs4/files/patch-kio_kfile_kpropertiesdialog.cpp
new file mode 100644
index 000000000000..c092f49144c9
--- /dev/null
+++ b/x11/kdelibs4/files/patch-kio_kfile_kpropertiesdialog.cpp
@@ -0,0 +1,18 @@
+--- ../kio/kfile/kpropertiesdialog.cpp.orig 2009-03-26 17:44:17.000000000 +0300
++++ ../kio/kfile/kpropertiesdialog.cpp 2009-04-02 10:12:09.000000000 +0400
+@@ -1770,7 +1770,15 @@
+ // pick the groups to which the user belongs
+ int groupCount = 0;
+ gid_t *groups = NULL;
++#ifdef Q_OS_FREEBSD
++#include <osreldate.h>
++#if (__FreeBSD_version <= 800000) // Fixed in kern/114655
++ gid_t tmp_group;
++ if (getgrouplist(strUser, user->pw_gid, &tmp_group, &groupCount) < 0) {
++#endif
++#else
+ if (getgrouplist(strUser, user->pw_gid, NULL, &groupCount) < 0) {
++#endif
+ groups = new gid_t[groupCount];
+ if (groups) {
+ getgrouplist(strUser, user->pw_gid, groups, &groupCount);