[Pkg-nagios-devel] Bug#1070073: check_libs_ng sometimes returns "No such file or directory"

Evgeni Golov evgeni at debian.org
Tue Apr 30 12:55:26 BST 2024


On Tue, Apr 30, 2024 at 07:45:41AM +0200, Evgeni Golov wrote:
> On Mon, Apr 29, 2024 at 08:35:28PM +0200, Evgeni Golov wrote:
> > UNKNOWN Exception: [Errno 2] No such file or directory: <some map file>
> > 
> > This is because the process might have already ended between calling
> > os.listdir() and os.stat().
> 
> Turns out, os.path.realpath() also can raise FileNotFoundError.
> 
> Updated patch attached.

And one more place that can yield an error. Yay.

See

https://salsa.debian.org/nagios-team/nagios-plugins-contrib/-/merge_requests/9/



More information about the Pkg-nagios-devel mailing list