From 7cce0cc2fd47d474a58371f210a38261c222c3ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Fri, 27 Sep 2019 23:06:12 +0200 Subject: [PATCH] Fix change notifications Another embarrassing 71fbaca regression. --- sdn.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sdn.cpp b/sdn.cpp index 428031b..8019891 100644 --- a/sdn.cpp +++ b/sdn.cpp @@ -806,8 +806,7 @@ fun reload (const string &old_cwd) { inotify_rm_watch (g.inotify_fd, g.inotify_wd); // We don't show atime, so access and open are merely spam - char buf[PATH_MAX]; - g.inotify_wd = inotify_add_watch (g.inotify_fd, buf, + g.inotify_wd = inotify_add_watch (g.inotify_fd, ".", (IN_ALL_EVENTS | IN_ONLYDIR | IN_EXCL_UNLINK) & ~(IN_ACCESS | IN_OPEN)); }