diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/fs/devfs/devfs_rule.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/fs/devfs/devfs_rule.c b/sys/fs/devfs/devfs_rule.c index e680202..3fd5d7a 100644 --- a/sys/fs/devfs/devfs_rule.c +++ b/sys/fs/devfs/devfs_rule.c @@ -633,7 +633,8 @@ devfs_rule_matchpath(struct devfs_krule *dk, struct devfs_dirent *de) dev = devfs_rule_getdev(de); if (dev != NULL) pname = dev->si_name; - else if (de->de_dirent->d_type == DT_LNK) + else if (de->de_dirent->d_type == DT_LNK || + de->de_dirent->d_type == DT_DIR) pname = de->de_dirent->d_name; else return (0); |