By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release. View | Details | Raw Unified | Return to bug 1499
Collapse All | Expand All

(-)tdeio/tdefile/kpropertiesdialog.cpp.orig2 (-20 / +24 lines)
Lines 1800-1826 Link Here
1800
    strUser = user->pw_name;
1800
    strUser = user->pw_name;
1801
1801
1802
#ifdef Q_OS_UNIX
1802
#ifdef Q_OS_UNIX
1803
  setgrent();
1803
  gid_t *groups = NULL;
1804
  for (i=0; ((ge = getgrent()) != 0L) && (i < maxEntries); i++)
1804
  int ng = 1;
1805
  {
1805
  struct group *mygroup;
1806
    if (IamRoot)
1806
  gid_t *newgroups = NULL;
1807
      groupList += TQString::fromLatin1(ge->gr_name);
1807
  
1808
    else
1808
  groups = (gid_t *) malloc(ng * sizeof(gid_t));
1809
    {
1809
  
1810
      /* pick the groups to which the user belongs */
1810
  if (getgrouplist(strUser, user->pw_gid, groups, &ng) == -1) {
1811
      char ** members = ge->gr_mem;
1811
	  newgroups = (gid_t *) malloc(ng * sizeof(gid_t));
1812
      char * member;
1812
	  if (newgroups != NULL) {
1813
      while ((member = *members) != 0L) {
1813
	          free(groups);
1814
        if (strUser == member) {
1814
		  groups = newgroups;
1815
          groupList += TQString::fromLocal8Bit(ge->gr_name);
1815
		  getgrouplist(strUser, user->pw_gid, groups, &ng);
1816
          break;
1816
	  } else ng = 1;
1817
        }
1817
  }
1818
        ++members;
1818
1819
      }
1819
  for (i = 0; i < ng; i++) {
1820
    }
1820
	  mygroup = getgrgid(groups[i]);
1821
	  if (mygroup != NULL) groupList += TQString::fromLocal8Bit(mygroup->gr_name);
1821
  }
1822
  }
1822
  endgrent();
1823
1823
#endif //Q_OS_UNIX
1824
  free(groups);
1825
  
1826
#else //Q_OS_UNIX
1824
1827
1825
  /* add the effective Group to the list .. */
1828
  /* add the effective Group to the list .. */
1826
  ge = getgrgid (getegid());
1829
  ge = getgrgid (getegid());
Lines 1831-1836 Link Here
1831
    if (groupList.find(name) == groupList.end())
1834
    if (groupList.find(name) == groupList.end())
1832
      groupList += name;
1835
      groupList += name;
1833
  }
1836
  }
1837
#endif //Q_OS_UNIX
1834
1838
1835
  bool isMyGroup = groupList.contains(strGroup);
1839
  bool isMyGroup = groupList.contains(strGroup);
1836
1840

Return to bug 1499