rlm_sql_log - directory creation

Alan DeKok aland at deployingradius.com
Thu Feb 9 13:29:40 CET 2012


Brian Candler wrote:
> Attached is a small patch we use to rlm_sql_log to create (one level of)
> directories automatically.

  There's already a rad_mkdir() function in src/main/util.c.  It handles
multiple directories, too.

> Is this something which might be considered for a future version? Perhaps
> more generally, any module which writes files could have a flag which
> enables 'mkdir -p' type functionality?

  It's probably better to have an API which says "open file for
creation, including any mkdir"

  Until then, I'll commit a short patch to the v2.1.x branch.

  Alan DeKok.



More information about the Freeradius-Devel mailing list