Bug#1009963: deb-systemd-helper: Misleading error message in "sub enable" if systemctl fails

2022-04-22 Thread sh-bugs
On Thu, 21 Apr 2022 19:08:26 +0200 Michael Biebl wrote: > ... > > Currently it always give "$!" as the reason, even when not correct. > This would also be incorrect if the real systemctl is used if the > command fails because of syntax errors or so. Thanks for the additional information,

Bug#1009963: deb-systemd-helper: Misleading error message in "sub enable" if systemctl fails

2022-04-21 Thread Michael Biebl
Am 21.04.22 um 18:37 schrieb Ansgar: Hi, On Thu, 2022-04-21 at 18:13 +0200, Michael Biebl wrote: So /usr/bin/systemctl is provided by the "systemctl" package? Can you post the output of apt-cache policy systemctl I think the bug reporter suggest to replace the system(...) == 0 or

Bug#1009963: deb-systemd-helper: Misleading error message in "sub enable" if systemctl fails

2022-04-21 Thread Ansgar
Hi, On Thu, 2022-04-21 at 18:13 +0200, Michael Biebl wrote: > > So /usr/bin/systemctl is provided by the "systemctl" package? > Can you post the output of apt-cache policy systemctl I think the bug reporter suggest to replace the system(...) == 0 or error("systemctl preset failed on

Bug#1009963: deb-systemd-helper: Misleading error message in "sub enable" if systemctl fails

2022-04-21 Thread Michael Biebl
Am 21.04.22 um 12:33 schrieb Sascha Herrmann: Package: init-system-helpers Version: 1.60 Severity: normal X-Debbugs-Cc: sh-b...@ps.nvbi.de Dear Maintainer, the code line 'or error("systemctl preset failed on $scriptname: $!");' prints some misleading information, if the systemctl command fails

Bug#1009963: deb-systemd-helper: Misleading error message in "sub enable" if systemctl fails

2022-04-21 Thread Sascha Herrmann
Package: init-system-helpers Version: 1.60 Severity: normal X-Debbugs-Cc: sh-b...@ps.nvbi.de Dear Maintainer, the code line 'or error("systemctl preset failed on $scriptname: $!");' prints some misleading information, if the systemctl command fails and returns an return value != 0. When using