From a87efd2ab0c9ed622b608ffa93c6ca8526c6474c Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 29 Nov 2018 19:34:08 -0600 Subject: Marius Adaskevicius pointed out mdev -s should follow symlinks. --- toys/pending/mdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'toys/pending/mdev.c') diff --git a/toys/pending/mdev.c b/toys/pending/mdev.c index 0493f1a5..d0bb0681 100644 --- a/toys/pending/mdev.c +++ b/toys/pending/mdev.c @@ -280,7 +280,8 @@ static int callback(struct dirtree *node) // Circa 2.6.25 the entries more than 2 deep are all either redundant // (mouse#, event#) or unnamed (every usb_* entry is called "device"). - return (node->parent && node->parent->parent) ? 0 : DIRTREE_RECURSE; + if (node->parent && node->parent->parent) return 0; + return DIRTREE_RECURSE|DIRTREE_SYMFOLLOW; } void mdev_main(void) -- cgit v1.2.3