diff options
Diffstat (limited to 'sys/fs/devfs/devfs_rule.c')
-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 a53e42e..f9787d5 100644 --- a/sys/fs/devfs/devfs_rule.c +++ b/sys/fs/devfs/devfs_rule.c @@ -634,7 +634,8 @@ devfs_rule_matchpath(struct devfs_krule *dk, struct devfs_dirent *de) dev = devfs_rule_getdev(de); if (dev != NULL) pname = dev->si_name; - /* XXX: Support symlinks (check d_type == DT_LNK here). */ + else if (de->de_dirent->d_type == DT_LNK) + pname = de->de_dirent->d_name; else return (0); KASSERT(pname != NULL, ("devfs_rule_matchpath: NULL pname")); |