fixed syslog url syntax, updated example config and manpage
authorvenaas <venaas>
Wed, 13 Jun 2007 11:01:50 +0000 (11:01 +0000)
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>
Wed, 13 Jun 2007 11:01:50 +0000 (11:01 +0000)
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@130 e88ac4ed-0b26-0410-9574-a7f39faa03bf

debug.c
radsecproxy.c
radsecproxy.conf-example
radsecproxy.conf.5

diff --git a/debug.c b/debug.c
index c36a7be..51ea91f 100644 (file)
--- a/debug.c
+++ b/debug.c
@@ -70,6 +70,8 @@ int debug_set_destination(char *dest) {
     }
     if (!strncasecmp(dest, "x-syslog://", 11)) {
        dest += 11;
+       if (*dest == '/')
+           dest++;
        if (*dest) {
            for (i = 0; facstrings[i]; i++)
                if (!strcasecmp(dest, facstrings[i]))
index 779e9f4..4851b28 100644 (file)
@@ -2298,7 +2298,7 @@ int main(int argc, char **argv) {
        options.logdestination = NULL;
     else {
        if (!options.logdestination)
-           options.logdestination = "x-syslog://";
+           options.logdestination = "x-syslog:///";
        debug_set_destination(options.logdestination);
     }
 
index 854bb95..4a0457c 100644 (file)
@@ -17,8 +17,8 @@
 # Or logging with Syslog. LOG_DAEMON used if facility not specified
 # The supported facilities are LOG_DAEMON, LOG_MAIL, LOG_USER and
 # LOG_LOCAL0, ..., LOG_LOCAL7
-#LogDestination         x-syslog://
-#LogDestination         x-syslog://log_local2
+#LogDestination         x-syslog:///
+#LogDestination         x-syslog:///log_local2
 
 #If we have TLS clients or servers we must define at least one tls block.
 #You can name them whatever you like and then reference them by name when
index 7145830..b19ebb3 100644 (file)
@@ -1,4 +1,4 @@
-.TH radsecproxy.conf 5 "7 June 2007"
+.TH radsecproxy.conf 5 "13 June 2007"
 
 .SH "NAME"
 radsecproxy.conf - Radsec proxy configuration file
@@ -80,7 +80,7 @@ syslog with facility \fBLOG_DAEMON\fR. Using this option you can specify another
 syslog facility, or you may specify that logging should be to a particular file,
 not using syslog. The value must be either a \fIfile\fR or \fIsyslog\fR URL. The
 file URL is the standard one, specifying a local file that should be used. For
-syslog, you must do use the following URL syntax: \fBx-syslog://FACILITY\fR where
+syslog, you must use the syntax: \fBx-syslog:///FACILITY\fR where
 \fBFACILITY\fR must be one of \fBLOG_DAEMON\fR, \fBLOG_MAIL\fR, \fBLOG_USER\fR,
 \fBLOG_LOCAL0\fR, \fBLOG_LOCAL1\fR, \fBLOG_LOCAL2\fR, \fBLOG_LOCAL3\fR,
 \fBLOG_LOCAL4\fR, \fBLOG_LOCAL5\fR, \fBLOG_LOCAL6\fR or \fBLOG_LOCAL7\fR. You may