From 38b82357f3a315db2afb332d642525c6ecc7f860 Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Mon, 12 Dec 2011 12:55:18 +0100 Subject: [PATCH] fsnotifier: watch linked subtrees --- native/fsNotifier/linux/inotify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/fsNotifier/linux/inotify.c b/native/fsNotifier/linux/inotify.c index 65e7f2849314..a8ff2f5c7205 100644 --- a/native/fsNotifier/linux/inotify.c +++ b/native/fsNotifier/linux/inotify.c @@ -207,7 +207,7 @@ static bool is_directory(struct dirent* entry, const char* path) { if (entry->d_type == DT_DIR) { return true; } - else if (entry->d_type == DT_UNKNOWN) { // filesystem doesn't support d_type + else if (entry->d_type == DT_UNKNOWN || entry->d_type == DT_LNK) { struct stat st; return (stat(path, &st) == 0 && S_ISDIR(st.st_mode)); }