/*
* Create a directory for this client.
*/
sprintf(buffer, "%s/%s", radacct_dir, clientname);
mkdir(buffer, 0755);
/*
* Write Detail file.
*/
sprintf(buffer, "%s/%s/detail", radacct_dir, clientname);
To this:
/* Write Single Detail file. */
sprintf(buffer, "%s/detail", radacct_dir);
That's all there is to it. (Oh, OK, you have to recompile, too. :-) )
-- Carl rigney cdr@livingston.com