-/* $OpenBSD: ractl.c,v 1.2 2019/11/01 18:15:28 florian Exp $ */
+/* $OpenBSD: ractl.c,v 1.3 2021/02/27 10:35:20 florian Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
int ch;
char *sockname;
- sockname = RAD_SOCKET;
+ sockname = _PATH_RAD_SOCKET;
while ((ch = getopt(argc, argv, "s:")) != -1) {
switch (ch) {
case 's':
-/* $OpenBSD: rad.c,v 1.26 2021/01/19 16:54:48 florian Exp $ */
+/* $OpenBSD: rad.c,v 1.27 2021/02/27 10:35:20 florian Exp $ */
/*
* Copyright (c) 2018 Florian Obser <florian@openbsd.org>
int control_fd;
char *csock;
- conffile = CONF_FILE;
- csock = RAD_SOCKET;
+ conffile = _PATH_CONF_FILE;
+ csock = _PATH_RAD_SOCKET;
log_init(1, LOG_DAEMON); /* Log to stderr until daemonized. */
log_setverbose(1);
-/* $OpenBSD: rad.h,v 1.20 2021/01/19 16:53:27 florian Exp $ */
+/* $OpenBSD: rad.h,v 1.21 2021/02/27 10:35:20 florian Exp $ */
/*
* Copyright (c) 2018 Florian Obser <florian@openbsd.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#define CONF_FILE "/etc/rad.conf"
-#define RAD_SOCKET "/var/run/rad.sock"
+#define _PATH_CONF_FILE "/etc/rad.conf"
+#define _PATH_RAD_SOCKET "/var/run/rad.sock"
#define RAD_USER "_rad"
#define OPT_VERBOSE 0x00000001