You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
987 B

  1. --- a/support/nfs/svc_socket.c
  2. +++ b/support/nfs/svc_socket.c
  3. @@ -40,10 +40,13 @@ int getservport(u_long number, const cha
  4. char rpcdata[1024], servdata[1024];
  5. struct rpcent rpcbuf, *rpcp;
  6. struct servent servbuf, *servp = NULL;
  7. - int ret;
  8. -
  9. + int ret=0;
  10. +#ifndef __UCLIBC__
  11. ret = getrpcbynumber_r(number, &rpcbuf, rpcdata, sizeof rpcdata,
  12. &rpcp);
  13. +#else
  14. + rpcp = getrpcbynumber (number);
  15. +#endif
  16. if (ret == 0 && rpcp != NULL) {
  17. /* First try name. */
  18. ret = getservbyname_r(rpcp->r_name, proto, &servbuf, servdata,
  19. --- a/utils/mountd/cache.c
  20. +++ b/utils/mountd/cache.c
  21. @@ -166,6 +166,7 @@ static void auth_unix_gid(FILE *f)
  22. pw = getpwuid(uid);
  23. if (!pw)
  24. rv = -1;
  25. +#ifndef __UCLIBC__
  26. else {
  27. rv = getgrouplist(pw->pw_name, pw->pw_gid, groups, &ngroups);
  28. if (rv == -1 && ngroups >= groups_len) {
  29. @@ -180,6 +181,7 @@ static void auth_unix_gid(FILE *f)
  30. }
  31. }
  32. }
  33. +#endif
  34. qword_printuint(f, uid);
  35. qword_printtimefrom(f, DEFAULT_TTL);
  36. if (rv >= 0) {