Lines Matching defs:path
308 char path[PATH_MAX];
311 snprintf(path, sizeof(path), "%s/files.db", db_path);
312 if( access(path, F_OK) != 0 )
317 if( sqlite3_open(path, &db) != SQLITE_OK )
351 char * path;
469 path = realpath(myval ? myval:ary_options[i].value, buf);
470 if( !path )
471 path = (myval ? myval:ary_options[i].value);
472 if( access(path, F_OK) != 0 )
475 path, strerror(errno));
479 this_dir->path = strdup(path);
524 path = realpath(ary_options[i].value, buf);
525 if( !path )
526 path = (ary_options[i].value);
527 make_dir(path, S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO);
528 if( access(path, F_OK) != 0 )
530 DPRINTF(E_FATAL, L_GENERAL, "Database path not accessible! [%s]\n", path);
533 strncpyt(db_path, path, PATH_MAX);
536 path = realpath(ary_options[i].value, buf);
537 if( !path )
538 path = (ary_options[i].value);
539 make_dir(path, S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO);
540 if( access(path, F_OK) != 0 )
542 DPRINTF(E_FATAL, L_GENERAL, "Log path not accessible! [%s]\n", path);
545 strncpyt(log_path, path, PATH_MAX);
954 free(media_path->path);
1289 free(media_path->path);