libnfsidmap:
[openwrt/svn-archive/archive.git] / libs / libnfsidmap / patches / 000-no-getgrouplist.patch
1 Index: libnfsidmap-0.20/nss.c
2 ===================================================================
3 --- libnfsidmap-0.20.orig/nss.c 2007-07-12 11:42:09.000000000 +0200
4 +++ libnfsidmap-0.20/nss.c 2007-07-12 11:42:09.000000000 +0200
5 @@ -295,9 +295,9 @@
6 ret = -ENOENT;
7 goto out;
8 }
9 - if (getgrouplist(pw->pw_name, pw->pw_gid, groups, ngroups) < 0)
10 - ret = -ERANGE;
11 - free(pw);
12 + // if (getgrouplist(pw->pw_name, pw->pw_gid, groups, ngroups) < 0)
13 + // ret = -ERANGE;
14 + // free(pw);
15 out:
16 return ret;
17 }