Merge "IPACM: fix dynamic firewall rule issue"
diff --git a/ipacm/src/IPACM_Main.cpp b/ipacm/src/IPACM_Main.cpp
index 6fb037a..595a8c1 100644
--- a/ipacm/src/IPACM_Main.cpp
+++ b/ipacm/src/IPACM_Main.cpp
@@ -145,7 +145,7 @@
char buffer[INOTIFY_BUF_LEN];
int inotify_fd;
ipacm_cmd_q_data evt_data;
- uint32_t mask = IN_MODIFY;
+ uint32_t mask = IN_MODIFY | IN_MOVE;
inotify_fd = inotify_init();
if (inotify_fd < 0)
@@ -172,7 +172,7 @@
if (event->len > 0)
{
- if (event->mask & IN_MODIFY)
+ if ( (event->mask & IN_MODIFY) || (event->mask & IN_MOVE))
{
if (event->mask & IN_ISDIR)
{