summaryrefslogtreecommitdiffstats
path: root/mandriva/2010.2/kdelibs/kdelibs-3.5.9-kio-kfile-grouplist.patch
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-01-30 12:06:23 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-01-30 12:06:23 +0900
commit40be1ebef7a688235d4730561908a02f10505385 (patch)
treeab182bf59496abaee2ddbf03d3e910bd37ae57e8 /mandriva/2010.2/kdelibs/kdelibs-3.5.9-kio-kfile-grouplist.patch
parentc169e89296c2d885faa5cdeba21dc35b10b2f583 (diff)
downloadtde-packaging-40be1ebef7a688235d4730561908a02f10505385.tar.gz
tde-packaging-40be1ebef7a688235d4730561908a02f10505385.zip
Removed obsolete Mandriva 2010 packaging files.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'mandriva/2010.2/kdelibs/kdelibs-3.5.9-kio-kfile-grouplist.patch')
-rw-r--r--mandriva/2010.2/kdelibs/kdelibs-3.5.9-kio-kfile-grouplist.patch63
1 files changed, 0 insertions, 63 deletions
diff --git a/mandriva/2010.2/kdelibs/kdelibs-3.5.9-kio-kfile-grouplist.patch b/mandriva/2010.2/kdelibs/kdelibs-3.5.9-kio-kfile-grouplist.patch
deleted file mode 100644
index 9673f87e3..000000000
--- a/mandriva/2010.2/kdelibs/kdelibs-3.5.9-kio-kfile-grouplist.patch
+++ /dev/null
@@ -1,63 +0,0 @@
---- kdelibs-3.5.9/kio/kfile/kpropertiesdialog.cpp.orig 2008-02-28 09:52:00.000000000 -0300
-+++ kdelibs-3.5.9/kio/kfile/kpropertiesdialog.cpp 2008-02-28 10:05:56.000000000 -0300
-@@ -1771,27 +1771,31 @@
- strUser = user->pw_name;
-
- #ifdef Q_OS_UNIX
-- setgrent();
-- for (i=0; ((ge = getgrent()) != 0L) && (i < maxEntries); i++)
-- {
-- if (IamRoot)
-- groupList += TQString::fromLatin1(ge->gr_name);
-- else
-- {
-- /* pick the groups to which the user belongs */
-- char ** members = ge->gr_mem;
-- char * member;
-- while ((member = *members) != 0L) {
-- if (strUser == member) {
-- groupList += TQString::fromLocal8Bit(ge->gr_name);
-- break;
-- }
-- ++members;
-- }
-- }
-- }
-- endgrent();
--#endif //Q_OS_UNIX
-+
-+ gid_t *groups = NULL;
-+ int ng = 1;
-+ struct group *mygroup;
-+ gid_t *newgroups = NULL;
-+
-+ groups = (gid_t *) malloc(ng * sizeof(gid_t));
-+
-+ if (getgrouplist(strUser, user->pw_gid, groups, &ng) == -1) {
-+ newgroups = (gid_t *) malloc(ng * sizeof(gid_t));
-+ if (newgroups != NULL) {
-+ free(groups);
-+ groups = newgroups;
-+ getgrouplist(strUser, user->pw_gid, groups, &ng);
-+ } else ng = 1;
-+ }
-+
-+ for (i = 0; i < ng; i++) {
-+ mygroup = getgrgid(groups[i]);
-+ if (mygroup != NULL) groupList += TQString::fromLocal8Bit(mygroup->gr_name);
-+ }
-+
-+ free(groups);
-+
-+#else //Q_OS_UNIX
-
- /* add the effective Group to the list .. */
- ge = getgrgid (getegid());
-@@ -1802,6 +1806,7 @@
- if (groupList.find(name) == groupList.end())
- groupList += name;
- }
-+#endif //Q_OS_UNIX
-
- bool isMyGroup = groupList.contains(strGroup);
-