On Thu, 21 Jun 2018 19:19:15 -0400 Jon <[email protected]> wrote:

> After the recent update to needrestart it no longer honors the
> sendnotify setting in needrestart.conf

This looks like https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=902031

Bug #902031 also identifies the upstream commit where this bug was
introduced. Please try patching your /usr/sbin/needrestart with the
attached patch and test, if it restores the correct behaviour for you.

Grüße,
Sven.
--- a/needrestart
+++ b/needrestart
@@ -186,12 +186,7 @@
 
 # slurp config file
 print STDERR "$LOGPREF eval $opt_c\n" if($nrconf{verbosity} > 1);
-eval do {
-    local $/;
-    open my $fh, $opt_c or die "ERROR: $!\n";
-    <$fh>;
-    close($fh);
-};
+eval do { local(@ARGV, $/) = $opt_c; <>};
 die "Error parsing $opt_c: $@" if($@);
 
 # fallback to stdio on verbose mode

Reply via email to