Package: freebsd-utils / 10.1~svn273304-1

015_rpc.umntall.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
---
 usr.sbin/rpc.umntall/rpc.umntall.c |    8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

--- a/src/usr.sbin/rpc.umntall/rpc.umntall.c
+++ b/src/usr.sbin/rpc.umntall/rpc.umntall.c
@@ -176,8 +176,7 @@
 
 	try.tv_sec = 3;
 	try.tv_usec = 0;
-	clp = clnt_create_timed(hostname, MOUNTPROG, MOUNTVERS, "udp",
-	    &try);
+	clp = clnt_create(hostname, MOUNTPROG, MOUNTVERS, "udp");
 	if (clp == NULL) {
 		warnx("%s: %s", hostname, clnt_spcreateerror("MOUNTPROG"));
 		return (0);
@@ -204,13 +203,12 @@
 
 	try.tv_sec = 3;
 	try.tv_usec = 0;
-	clp = clnt_create_timed(hostname, MOUNTPROG, MOUNTVERS, "udp",
-	    &try);
+	clp = clnt_create(hostname, MOUNTPROG, MOUNTVERS, "udp");
 	if (clp  == NULL) {
 		warnx("%s: %s", hostname, clnt_spcreateerror("MOUNTPROG"));
 		return (0);
 	}
-	clp->cl_auth = authsys_create_default();
+	clp->cl_auth = authunix_create_default();
 	clnt_stat = clnt_call(clp, MOUNTPROC_UMNT, (xdrproc_t)xdr_dir, dirp,
 	    (xdrproc_t)xdr_void, (caddr_t)0, try);
 	if (clnt_stat != RPC_SUCCESS)