Changeset View
Changeset View
Standalone View
Standalone View
krusader/FileSystem/krpermhandler.cpp
Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Line(s) | 65 | { | |||
---|---|---|---|---|---|
66 | // set the umask to 022 | 66 | // set the umask to 022 | ||
67 | //umask( 022 ); | 67 | //umask( 022 ); | ||
68 | 68 | | |||
69 | // 200 groups should be enough | 69 | // 200 groups should be enough | ||
70 | gid_t groupList[200]; | 70 | gid_t groupList[200]; | ||
71 | int groupNo = getgroups(200, groupList); | 71 | int groupNo = getgroups(200, groupList); | ||
72 | 72 | | |||
73 | // In kdewin32 implementation as of 4.1.2, getpwent always returns the same struct | 73 | // In kdewin32 implementation as of 4.1.2, getpwent always returns the same struct | ||
74 | #ifndef Q_WS_WIN | 74 | #ifndef Q_OS_WIN | ||
75 | // fill the UID cache | 75 | // fill the UID cache | ||
76 | struct passwd *pass; | 76 | struct passwd *pass; | ||
77 | while ((pass = getpwent()) != nullptr) { | 77 | while ((pass = getpwent()) != nullptr) { | ||
78 | uidCache.insert(pass->pw_uid, pass->pw_name); | 78 | uidCache.insert(pass->pw_uid, pass->pw_name); | ||
79 | } | 79 | } | ||
80 | delete pass; | 80 | delete pass; | ||
81 | endpwent(); | 81 | endpwent(); | ||
82 | 82 | | |||
▲ Show 20 Lines • Show All 97 Lines • Show Last 20 Lines |