When a file is moved, an IN_MOVED_TO is signalled without IN_MODIFY
being set. Add IN_MOVED_TO the condition loading the  provisioning file.
---
 src/config.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/config.c b/src/config.c
index d993fd3..520c754 100644
--- a/src/config.c
+++ b/src/config.c
@@ -903,7 +903,7 @@ static void config_notify_handler(struct inotify_event 
*event,
        if (event->mask & (IN_CREATE | IN_MOVED_TO))
                create_config(ident);
 
-       if (event->mask & IN_MODIFY) {
+       if (event->mask & (IN_MODIFY | IN_MOVED_TO)) {
                struct connman_config *config;
 
                config = g_hash_table_lookup(config_table, ident);
-- 
2.1.4

_______________________________________________
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman

Reply via email to