Re: [PATCH] expand: Check d_type in expmeta before recursing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Jun 02, 2024 at 09:34:38AM +0800, Herbert Xu wrote:
> If the directory pointer is not a directory or symlink, do not
> recurse into expmeta.

> +		if (c && dp->d_type != DT_DIR && dp->d_type != DT_LNK)
> +			goto check_int;

Good idea, but DT_UNKNOWN might also be a directory or a symlink to one.

-- 
Jilles Tjoelker




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux