chiark / gitweb /
shutdown: accept minutes argument without '+'
authorMichal Schmidt <mschmidt@redhat.com>
Sat, 2 Jul 2011 18:41:36 +0000 (20:41 +0200)
committerMichal Schmidt <mschmidt@redhat.com>
Sat, 2 Jul 2011 22:11:22 +0000 (00:11 +0200)
commit1a63987788624a8819b94b199aa6748665f5e957
tree3a62e77e48af08c8bd9c89e10645c704ac723ef6
parent1b562e4604f8833bc21fd251b8bdb45c9c224df4
shutdown: accept minutes argument without '+'

Both SysVinit's and upstart's shutdown commands accept the number of
minutes with or without the plus sign.
'shutdown -h 1' works in RHEL 5, Fedora 14, Debian 6.
Let's be compatible.

https://bugzilla.redhat.com/show_bug.cgi?id=708886
src/systemctl.c