aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorQball Cow <qball@qballcow.nl>2006-05-08 21:03:47 +0000
committerQball Cow <qball@qballcow.nl>2006-05-08 21:03:47 +0000
commit66e4379d698172fe7c3f17799eb24628df79bffa (patch)
tree1d820388945c7e31c1cf1366afa072eff468f9ac /src/main.c
parent1071524ae7b482d90d394cb8d9f13104f0eefedb (diff)
downloadmpd-66e4379d698172fe7c3f17799eb24628df79bffa.tar.gz
mpd-66e4379d698172fe7c3f17799eb24628df79bffa.tar.xz
mpd-66e4379d698172fe7c3f17799eb24628df79bffa.zip
Jat/Q patch for checking permission on database before creating it
git-svn-id: https://svn.musicpd.org/mpd/trunk@4140 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index f7eb8a45a..944eb037a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -320,6 +320,7 @@ void openDB(Options * options, char * argv0) {
exit(EXIT_FAILURE);
}
flushWarningLog();
+ if(checkDirectoryDB()<0) exit(EXIT_FAILURE);
initMp3Directory();
if(writeDirectoryDB()<0) exit(EXIT_FAILURE);
if(options->createDB) exit(EXIT_SUCCESS);