From: Kern Sibbald Date: Thu, 9 Jan 2003 22:04:55 +0000 (+0000) Subject: quote path name patch X-Git-Tag: Release-1.29~41 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=62c9b5e59d368f3ebc10edd65993dc412688d1b2;p=bacula%2Fbacula quote path name patch git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@279 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/cats/sql_create.c b/bacula/src/cats/sql_create.c index d807cfa24c..b2a334b862 100644 --- a/bacula/src/cats/sql_create.c +++ b/bacula/src/cats/sql_create.c @@ -556,7 +556,7 @@ static int db_create_path_record(B_DB *mdb, ATTR_DBR *ar) sql_free_result(mdb); } - Mmsg(&mdb->cmd, "INSERT INTO Path (Path) VALUES ('%s')", mdb->path); + Mmsg(&mdb->cmd, "INSERT INTO Path (Path) VALUES ('%s')", mdb->esc_name); if (!INSERT_DB(mdb, mdb->cmd)) { Mmsg2(&mdb->errmsg, _("Create db Path record %s failed. ERR=%s\n"),