From 471eb9db468e5f60cfea7995abeaf073407ea4d1 Mon Sep 17 00:00:00 2001 From: chme Date: Sun, 17 Dec 2017 09:13:09 +0100 Subject: [PATCH] [db] Do not trigger a DATABASE event if db_directory_enable_bypath does not change the library --- src/db.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db.c b/src/db.c index 9f728687..12515aa8 100644 --- a/src/db.c +++ b/src/db.c @@ -3615,7 +3615,7 @@ db_directory_enable_bycookie(uint32_t cookie, char *path) int db_directory_enable_bypath(char *path) { -#define Q_TMPL "UPDATE directories SET disabled = 0 WHERE virtual_path = %Q;" +#define Q_TMPL "UPDATE directories SET disabled = 0 WHERE virtual_path = %Q AND disabled <> 0;" char *query; int ret;