usr/src/cmd/radcli/radcli.c
changeset 798 a7deccd6492f
parent 692 6c96466094d8
child 811 c65c58b7a1f0
--- a/usr/src/cmd/radcli/radcli.c	Wed Feb 01 09:22:41 2012 -0500
+++ b/usr/src/cmd/radcli/radcli.c	Thu Feb 02 11:25:01 2012 -0500
@@ -20,7 +20,7 @@
  */
 
 /*
- * Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved.
  */
 
 #include <sys/types.h>
@@ -32,6 +32,7 @@
 #include <stdlib.h>
 #include <pthread.h>
 
+#include <rad/rad_modapi.h>
 #include <rad/radclient.h>
 #include <rad/adr.h>
 
@@ -150,9 +151,9 @@
 	else if (argc > 1 && strcmp(argv[1], "-p") == 0)
 		fd = slave_connect_pipe();
 	else if (argc > 1 && strcmp(argv[1], "-u") == 0)
-		fd = afunix_connect("/var/run/radsocket-unauth");
+		fd = afunix_connect(RAD_PATH_AFUNIX_UNAUTH);
 	else
-		fd = afunix_connect("/var/run/radsocket");
+		fd = afunix_connect(RAD_PATH_AFUNIX_AUTH);
 	if (fd == -1) {
 		perror("unable to connect to rad");
 		return (1);