expand: Check d_type in expmeta before recursing
commit636a856232767b1fdf2396e2073ba859924a7d7f
authorHerbert Xu <herbert@gondor.apana.org.au>
Sat, 8 Jun 2024 03:42:53 +0000 (8 11:42 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 16 Jun 2024 10:16:59 +0000 (16 18:16 +0800)
tree4f684c0a3c08bfe27bf6c2917bb3a9a297b2be60
parent8d0eca2d9fb5f5ed747fbdbe64bf04ccad1568e8
expand: Check d_type in expmeta before recursing

If the directory pointer is not a directory, a symlink or an unknown
entity, do not recurse into expmeta.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
src/expand.c