# HG changeset patch # User mas01cr # Date 1232789979 0 # Node ID c7bdb7913762fdc476b4e4577c7defd3db40f0b0 # Parent 01cb73dfcddd49dfc8f82fc3c259de99a197c33e in audioDB::query, open the database file with O_RDONLY. Bug spotted by Malcolm Slaney. diff -r 01cb73dfcddd -r c7bdb7913762 audioDB.cpp --- a/audioDB.cpp Sat Jan 24 06:16:00 2009 +0000 +++ b/audioDB.cpp Sat Jan 24 09:39:39 2009 +0000 @@ -756,7 +756,7 @@ void audioDB::query(const char* dbName, const char* inFile, struct soap *soap, adb__queryResponse *adbQueryResponse) { if(!adb) { - if(!(adb = audiodb_open(dbName, O_RDWR))) { + if(!(adb = audiodb_open(dbName, O_RDONLY))) { error("failed to open database", dbName); } }