* When called with -R, only remove art_cache and files.db in case users use an imporant directory as their db dir.

* Touch up log directory handling.  If there is no log dir, but there is a db dir, store the log in the db dir.
This commit is contained in:
Justin Maggard
2011-03-12 02:17:27 +00:00
parent 92561e56b8
commit b62d77571b
3 changed files with 15 additions and 3 deletions

View File

@ -84,8 +84,8 @@ struct lan_addr_s lan_addr[MAX_LAN_ADDR];
sqlite3 * db;
char dlna_no_conv[] = "DLNA.ORG_OP=01;DLNA.ORG_CI=0";
char friendly_name[FRIENDLYNAME_MAX_LEN];
char db_path[PATH_MAX] = DEFAULT_DB_PATH;
char log_path[PATH_MAX] = DEFAULT_LOG_PATH;
char db_path[PATH_MAX] = {'\0'};
char log_path[PATH_MAX] = {'\0'};
struct media_dir_s * media_dirs = NULL;
struct album_art_name_s * album_art_names = NULL;
struct client_cache_s clients[CLIENT_CACHE_SLOTS];