From 42af5d328901287a4f79d1f5861ac827a53fd56d Mon Sep 17 00:00:00 2001 From: Thomas Liske Date: Sun, 24 Nov 2024 12:08:00 +0100 Subject: [PATCH] core: fix regression of false positives for processes running in chroot or mountns (#317) --- needrestart | 1 - 1 file changed, 1 deletion(-) diff --git a/needrestart b/needrestart index 6b4fcf7a..de65b44b 100755 --- a/needrestart +++ b/needrestart @@ -530,7 +530,6 @@ if(defined($opt_l)) { # orphaned binary $restart++ if (defined($exe) && $exe =~ s/ \(deleted\)$//); # Linux $restart++ if (defined($exe) && $exe =~ s/^\(deleted\)//); # Linux VServer - $restart++ unless(defined($ptable->{$pid}->{exec})); print STDERR "$LOGPREF #$pid uses obsolete binary $exe\n" if($restart && $nrconf{verbosity} > 1); # ignore blacklisted binaries