[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <878qg9ucmx.fsf@trenco.lwn.net>
Date: Thu, 13 Nov 2025 09:21:26 -0700
From: Jonathan Corbet <corbet@....net>
To: Mauro Carvalho Chehab <mchehab+huawei@...nel.org>, Linux Doc Mailing
List <linux-doc@...r.kernel.org>
Cc: Mauro Carvalho Chehab <mchehab+huawei@...nel.org>,
linux-kernel@...r.kernel.org, Randy Dunlap <rdunlap@...radead.org>
Subject: Re: [PATCH] scripts: docs: kdoc_files.py: don't consider symlinks
as directories
Mauro Carvalho Chehab <mchehab+huawei@...nel.org> writes:
> As reported by Randy, currently kdoc_files can go into endless
> looks when symlinks are used:
>
> $ ln -s . Documentation/peci/foo
> $ ./scripts/kernel-doc Documentation/peci/
> ...
> File "/new_devel/docs/scripts/lib/kdoc/kdoc_files.py", line 52, in _parse_dir
> if entry.is_dir():
> ~~~~~~~~~~~~^^
> OSError: [Errno 40] Too many levels of symbolic links: 'Documentation/peci/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo'
>
> Prevent that by not considering symlinks as directories.
>
> Reported-by: Randy Dunlap <rdunlap@...radead.org>
> Closes: https://lore.kernel.org/linux-doc/80701524-09fd-4d68-8715-331f47c969f2@infradead.org/
> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@...nel.org>
This looks the same as yesterday's version?
Applied, anyway, thanks.
jon
Powered by blists - more mailing lists