usr/src/cmd/radpipe/radpipe.c
changeset 798 a7deccd6492f
parent 646 e1e91f5b0cb1
child 834 1e5c5d230679
--- a/usr/src/cmd/radpipe/radpipe.c	Wed Feb 01 09:22:41 2012 -0500
+++ b/usr/src/cmd/radpipe/radpipe.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>
@@ -33,6 +33,8 @@
 #include <pthread.h>
 #include <stdio.h>
 
+#include <rad/rad_modapi.h>
+
 /*
  * Connects to an AF_UNIX socket
  */
@@ -101,9 +103,9 @@
 main(int argc, char **argv)
 {
 	if (argc > 1 && strcmp(argv[1], "-u") == 0)
-		radfd = afunix_connect("/var/run/radsocket-unauth");
+		radfd = afunix_connect(RAD_PATH_AFUNIX_UNAUTH);
 	else {
-		radfd = afunix_connect("/var/run/radsocket");
+		radfd = afunix_connect(RAD_PATH_AFUNIX_AUTH);
 	}
 
 	if (radfd == -1) {