summaryrefslogtreecommitdiff
path: root/vpn/vpn-config.c
diff options
context:
space:
mode:
Diffstat (limited to 'vpn/vpn-config.c')
-rw-r--r--vpn/vpn-config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vpn/vpn-config.c b/vpn/vpn-config.c
index 293c64e0..c88a99ab 100644
--- a/vpn/vpn-config.c
+++ b/vpn/vpn-config.c
@@ -484,12 +484,12 @@ static void config_notify_handler(struct inotify_event *event,
if (event->mask & IN_CREATE)
return;
- if (event->mask & IN_DELETE) {
+ if (event->mask & (IN_DELETE | IN_MOVED_FROM)) {
g_hash_table_remove(config_table, ident);
return;
}
- if (event->mask & IN_MODIFY) {
+ if (event->mask & (IN_MODIFY | IN_MOVED_TO)) {
struct vpn_config *config;
char *path = get_dir();