summaryrefslogtreecommitdiff
path: root/x11/kdelibs4/files/patch-kio_kfile_kpropertiesdialog.cpp
blob: 004f25901f97ce52ea8b8cf98dd90e6fe5c6e441 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- ./kio/kfile/kpropertiesdialog.cpp.orig	2009-05-06 14:14:38.000000000 +0400
+++ ./kio/kfile/kpropertiesdialog.cpp	2009-05-30 00:46:08.000000000 +0400
@@ -1804,7 +1804,15 @@
 #else
     QVarLengthArray<gid_t> groups;
 #endif
+#ifdef Q_OS_FREEBSD
+#include <osreldate.h>
+#endif
+#if defined(Q_OS_FREEBSD) && (__FreeBSD_version <= 800000) // Fixed in kern/114655
+    gid_t tmp_group;
+    if (getgrouplist(strUser, user->pw_gid, &tmp_group, &groupCount) < 0) {
+#else
     if (getgrouplist(strUser, user->pw_gid, NULL, &groupCount) < 0) {
+#endif
         groups.resize(groupCount);
         if (groups.data())
             getgrouplist(strUser, user->pw_gid, groups.data(), &groupCount);