backslash and expansion variable quirk in line log format string

Jason Rankin j.rankin at federation.edu.au
Fri Apr 10 10:10:55 CEST 2015


> -----Original Message-----
> From: Freeradius-Users [mailto:freeradius-users-
> bounces+j.rankin=federation.edu.au at lists.freeradius.org] On Behalf Of
> A.L.M.Buxey at lboro.ac.uk
> Sent: Friday, 10 April 2015 5:35 PM
> To: FreeRadius users mailing list
> Subject: Re: backslash and expansion variable quirk in line log format string
> 
> Hi,
> 
> > ie
> > %{User-Name} is "fred"
> > "foo\\%{User-Name}",  logs "foo\%{User-Name}" to syslog
> 
> "foo\%{User-Name}" ?
> 
> 
> alan
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html

Hi Alan,
if I use a single '\' , I seem to get "foofred", where %{User-Name} = "fred".  It's got something to do with the string parsing and single \ characters as control chars, but I've missed something...

thanks
Jason




More information about the Freeradius-Users mailing list