Bug#1001795: sysvinit-core: Time parsing bug in shutdown

Jan Korbel debian at teptin.net
Thu Dec 16 12:36:02 GMT 2021


Package: sysvinit-core
Version: 2.96-7

Hello.

There is a bug in time parsing of shutdown command.
Because of this bug it is not possible to shutdown VM by qemu guest
agent.

Bugged version of sysvinit is in Debian 11, Debian 10 is fine.

Hardcoded command of qemu guest agent (commands-posix.c):

execle("/sbin/shutdown", "shutdown", "-h", shutdown_flag, "+0",
 "hypervisor initiated shutdown", (char*)NULL, environ);

Exactly:

/sbin/shutdown -h -P +0 hypervisor initiated shutdown

Problematic is "+0" time. "0" or "now" is ok.

I found this upstream commit:

https://git.savannah.nongnu.org/cgit/sysvinit.git/commit/?id=462a92ce2adb3f9e7d8c55301d8eb4ba2b15830c

Is it possible to backport this fix?

Regards,

J.K.



More information about the Debian-init-diversity mailing list