Date: Thu, 12 Jul 2012 16:49:51 +0000 From: exxo@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r239308 - in soc2012/exxo: . freebsd-head/usr.bin/quota Message-ID: <20120712164951.54AB81065675@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: exxo Date: Thu Jul 12 16:49:50 2012 New Revision: 239308 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=239308 Log: Fixing quota using new RPC API Modified: soc2012/exxo/freebsd-head/usr.bin/quota/quota.c soc2012/exxo/softnotes.txt Modified: soc2012/exxo/freebsd-head/usr.bin/quota/quota.c ============================================================================== --- soc2012/exxo/freebsd-head/usr.bin/quota/quota.c Thu Jul 12 15:20:20 2012 (r239307) +++ soc2012/exxo/freebsd-head/usr.bin/quota/quota.c Thu Jul 12 16:49:50 2012 (r239308) @@ -657,28 +657,17 @@ callaurpc(char *host, int prognum, int versnum, int procnum, xdrproc_t inproc, char *in, xdrproc_t outproc, char *out) { - struct sockaddr_in server_addr; enum clnt_stat clnt_stat; - struct hostent *hp; struct timeval timeout, tottimeout; CLIENT *client = NULL; - int sock = RPC_ANYSOCK; - if ((hp = gethostbyname(host)) == NULL) - return ((int) RPC_UNKNOWNHOST); timeout.tv_usec = 0; timeout.tv_sec = 6; - bcopy(hp->h_addr, &server_addr.sin_addr, - MIN(hp->h_length,(int)sizeof(server_addr.sin_addr))); - server_addr.sin_family = AF_INET; - server_addr.sin_port = 0; + if ((client = clnt_create_timed(host, prognum, + versnum, "udp", &timeout)) == NULL) - if ((client = clntudp_create(&server_addr, prognum, - versnum, timeout, &sock)) == NULL) - return ((int) rpc_createerr.cf_stat); - - client->cl_auth = authunix_create_default(); + client->cl_auth = authsys_create_default(); tottimeout.tv_sec = 25; tottimeout.tv_usec = 0; clnt_stat = clnt_call(client, procnum, inproc, in, Modified: soc2012/exxo/softnotes.txt ============================================================================== --- soc2012/exxo/softnotes.txt Thu Jul 12 15:20:20 2012 (r239307) +++ soc2012/exxo/softnotes.txt Thu Jul 12 16:49:50 2012 (r239308) @@ -3,9 +3,9 @@ usr.bin/who OK (software dependant, utmpx fixed it) usr.bin/rusers usr.bin/bluetooth -usr.bin/systat +usr.bin/systat FIXED (patch provided. systat now supports IPv6 when using ignore/display/show netstat commands) usr.bin/rup -usr.bin/quota +usr.bin/quota FIXED usr.bin/newkey usr.bin/ypwhich usr.bin/getent
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120712164951.54AB81065675>