[Packages] net/nfs-utils: Update to 1.1.2
[openwrt/svn-archive/archive.git] / net / nfs-utils / patches / 001-no-getgrouplist.patch
1 Index: nfs-utils-1.1.2/utils/mountd/cache.c
2 ===================================================================
3 --- nfs-utils-1.1.2.orig/utils/mountd/cache.c 2008-04-13 10:38:24.000000000 +0200
4 +++ nfs-utils-1.1.2/utils/mountd/cache.c 2008-04-13 10:38:25.000000000 +0200
5 @@ -141,17 +141,17 @@
6 pw = getpwuid(uid);
7 if (!pw)
8 rv = -1;
9 - else {
10 - rv = getgrouplist(pw->pw_name, pw->pw_gid, groups, &ngroups);
11 - if (rv == -1 && ngroups >= 100) {
12 - groups = malloc(sizeof(gid_t)*ngroups);
13 - if (!groups)
14 - rv = -1;
15 - else
16 - rv = getgrouplist(pw->pw_name, pw->pw_gid,
17 - groups, &ngroups);
18 - }
19 - }
20 +// else {
21 +// rv = getgrouplist(pw->pw_name, pw->pw_gid, groups, &ngroups);
22 +// if (rv == -1 && ngroups >= 100) {
23 +// groups = malloc(sizeof(gid_t)*ngroups);
24 +// if (!groups)
25 +// rv = -1;
26 +// else
27 +// rv = getgrouplist(pw->pw_name, pw->pw_gid,
28 +// groups, &ngroups);
29 +// }
30 +// }
31 qword_printint(f, uid);
32 qword_printint(f, time(0)+30*60);
33 if (rv >= 0) {