09cfa8cefb6904c023d68d3f6a2097b57e22e05f
[openwrt/svn-archive/archive.git] / net / nfs-utils / patches / 001-no-getgrouplist.patch
1 --- nfs-utils-1.1.0/utils/mountd/cache.c~ 2007-05-10 20:40:57.000000000 -0700
2 +++ nfs-utils-1.1.0/utils/mountd/cache.c 2007-06-07 15:29:28.000000000 -0700
3 @@ -131,17 +131,17 @@
4 pw = getpwuid(uid);
5 if (!pw)
6 rv = -1;
7 - else {
8 - rv = getgrouplist(pw->pw_name, pw->pw_gid, groups, &ngroups);
9 - if (rv == -1 && ngroups >= 100) {
10 - groups = malloc(sizeof(gid_t)*ngroups);
11 - if (!groups)
12 - rv = -1;
13 - else
14 - rv = getgrouplist(pw->pw_name, pw->pw_gid,
15 - groups, &ngroups);
16 - }
17 - }
18 +// else {
19 +// rv = getgrouplist(pw->pw_name, pw->pw_gid, groups, &ngroups);
20 +// if (rv == -1 && ngroups >= 100) {
21 +// groups = malloc(sizeof(gid_t)*ngroups);
22 +// if (!groups)
23 +// rv = -1;
24 +// else
25 +// rv = getgrouplist(pw->pw_name, pw->pw_gid,
26 +// groups, &ngroups);
27 +// }
28 +// }
29 qword_printint(f, uid);
30 qword_printint(f, time(0)+30*60);
31 if (rv >= 0) {