/*
* Skip over UTF8 characters
*/
- utf8 = fr_utf8_char((uint8_t *)in);
+ utf8 = fr_utf8_char((const uint8_t *)in);
if (utf8) {
if (outlen <= utf8) {
break;
FILE *fp;
int locked = 0;
struct stat st;
- char path[MAX_STRING_LEN];
+ char *p, path[1024];
path[0] = '\0';
radius_xlat(path, sizeof(path), inst->path, request, NULL);
return RLM_MODULE_FAIL;
}
+ p = strrchr(path, '/');
+ if (p) {
+ *p = '\0';
+ rad_mkdir(path, 0644);
+ *p = '/';
+ }
+
while (!locked) {
if ((fd = open(path, O_WRONLY | O_APPEND | O_CREAT, 0666)) < 0) {
radlog_request(L_ERR, 0, request, "Couldn't open file %s: %s",