]> Sergey Matveev's repositories - nnn.git/commitdiff
Do not subscribe to IN_ATTRIB events
authorArun Prakash Jana <engineerarun@gmail.com>
Sat, 23 Mar 2019 03:12:34 +0000 (08:42 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sat, 23 Mar 2019 03:12:34 +0000 (08:42 +0530)
src/nnn.c

index 930f495052ef5cf6df48b3481a27245ee3f9e85c..c5e66f78ab6b74974d5e9147f4d2ccfc2ff54a2f 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -409,7 +409,7 @@ static const char * const envs[] = {
 #define EVENT_SIZE (sizeof(struct inotify_event))
 #define EVENT_BUF_LEN (EVENT_SIZE * NUM_EVENT_SLOTS)
 static int inotify_fd, inotify_wd = -1;
-static uint INOTIFY_MASK = IN_ATTRIB | IN_CREATE | IN_DELETE | IN_DELETE_SELF
+static uint INOTIFY_MASK = /* IN_ATTRIB | */ IN_CREATE | IN_DELETE | IN_DELETE_SELF
                           | IN_MODIFY | IN_MOVE_SELF | IN_MOVED_FROM | IN_MOVED_TO;
 #elif defined(BSD_KQUEUE)
 #define NUM_EVENT_SLOTS 1