[Bug 9986] New: "halt" from login prompt does not work anymore
bugzilla at busybox.net
bugzilla at busybox.net
Wed Jun 28 14:21:05 UTC 2017
https://bugs.busybox.net/show_bug.cgi?id=9986
Bug ID: 9986
Summary: "halt" from login prompt does not work anymore
Product: Busybox
Version: unspecified
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned at busybox.net
Reporter: ronald.wahl at raritan.com
CC: busybox-cvs at busybox.net
Target Milestone: ---
Created attachment 7081
--> https://bugs.busybox.net/attachment.cgi?id=7081&action=edit
Fix for the issue
I have the following in my /etc/passwd:
halt::0:0:root:/sbin:/sbin/halt
After updating from 1.23.2 to 1.26.2 this does not work anymore:
XXX.XXX.XXX.XXX login: halt
-halt: Invalid argument
Reason is that applet_name is regenerated from argv[0] after removing the
leading dash. I attach a patch that works for me...
(side note: the bugtracker is not up-to-date regading Busybox versions - it
ends at 1.24.x.)
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list