From 311ce98d855284d567a48cd050aa62f91fbcaf3a Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Sun, 19 Jul 2009 18:42:02 -0700 Subject: [PATCH] (hdb_sqlite_rename): make rename work when there is a prefix --- lib/hdb/hdb-sqlite.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/hdb/hdb-sqlite.c b/lib/hdb/hdb-sqlite.c index be9d26ab5..c715a0c6c 100644 --- a/lib/hdb/hdb-sqlite.c +++ b/lib/hdb/hdb-sqlite.c @@ -763,6 +763,9 @@ hdb_sqlite_rename(krb5_context context, HDB *db, const char *new_name) krb5_warnx(context, "%s", __FUNCTION__); + if (strncasecmp(new_name, "sqlite:", 7) == 0) + new_name += 7; + hdb_sqlite_close_database(context, db); ret = rename(hsdb->db_file, new_name);