fsnotifier: watch linked subtrees

This commit is contained in:
Roman Shevchenko
2011-12-12 16:04:14 +01:00
parent c5b6fb11a9
commit 38b82357f3
+1 -1
View File
@@ -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));
}