so that DIR does not crash. Fixes bug #761.
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4045
91ce42f0-d328-0410-95d8-
f526ca767f89
int stat = sqlite3_open(db_name, &mdb->db);
if (stat != SQLITE_OK) {
mdb->sqlite_errmsg = (char *)sqlite3_errmsg(mdb->db);
+ sqlite3_close(mdb->db);
+ mdb->db = NULL;
} else {
mdb->sqlite_errmsg = NULL;
}
#undef VERSION
#define VERSION "2.1.1"
-#define BDATE "18 January 2007"
-#define LSMDATE "18Jan07"
+#define BDATE "26 January 2007"
+#define LSMDATE "26Jan07"
#define PROG_COPYRIGHT "Copyright (C) %d-2007 Free Software Foundation Europe e.V.\n"
#define BYEAR "2007" /* year for copyright messages in progs */
Technical notes on version 2.1
General:
+26Jan07
+kes Fix open of SQLite3 db where user does not have write permission
+ so that DIR does not crash. Fixes bug #761.
25Jan07
kes Add back missing @ in Win32 Makefile.
kes Change 'Device not configured to autolabel' from INFO