mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-24 06:05:56 -05:00
Fix problem with blank db_dirs, now that it isn't necessary anymore :)
This commit is contained in:
parent
c0752c13ac
commit
55bc7986de
@ -404,9 +404,14 @@ int config_read(char *file) {
|
||||
free(config.mp3dir);
|
||||
config.mp3dir=strdup(path_buffer);
|
||||
|
||||
realpath(config.dbdir,path_buffer);
|
||||
free(config.dbdir);
|
||||
config.dbdir=strdup(path_buffer);
|
||||
if(config.dbdir) {
|
||||
DPRINTF(E_LOG,L_MISC,"You are using db_dir rather than "
|
||||
"db_type/db_parms. This will stop working at "
|
||||
"some point. Please fix your config");
|
||||
realpath(config.dbdir,path_buffer);
|
||||
free(config.dbdir);
|
||||
config.dbdir=strdup(path_buffer);
|
||||
}
|
||||
|
||||
|
||||
/* sanity check the paths */
|
||||
@ -433,7 +438,7 @@ int config_read(char *file) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
if(!config_existdir(config.dbdir)) {
|
||||
if((config.dbdir)&&(!config_existdir(config.dbdir))) {
|
||||
/* try to make it */
|
||||
if(config_makedir(config.dbdir)) {
|
||||
DPRINTF(E_LOG,L_CONF,"Database dir %s does not exist, cannot create: %s\n",
|
||||
|
Loading…
Reference in New Issue
Block a user