directory: allow db_file to reside on / once again
Oops!, I went back and documented the change going to parent_path(), but forgot to change the code that was affected by it. git-svn-id: https://svn.musicpd.org/mpd/trunk@7131 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
cb8f1af3bd
commit
776ccc89ad
@ -991,6 +991,8 @@ int checkDirectoryDB(void)
|
||||
* see if we can write a file in that */
|
||||
char dirPath[MPD_PATH_MAX];
|
||||
parent_path(dirPath, dbFile);
|
||||
if (*dirPath == '\0')
|
||||
strcpy(dirPath, "/");
|
||||
|
||||
/* Check that the parent part of the path is a directory */
|
||||
if (stat(dirPath, &st) < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user