trasz 6517c9db49 When rerooting, take the init(8) path from argv[0] instead of fetching
it via kern.proc.pathname sysctl(2).  In some cases - booting from NFS
or rerooting after replacing the init binary with a new one - the sysctl
would fail.  In other cases - after upgrading, which moves the old init
to /sbin/init.bak - it would return /sbin/init.bak, which is the actual
path of the running init, instead of /sbin/init.

Reported by:	Melissa Jenkins <melissa-freebsd at littlebluecar.co.uk>, jilles@
MFC after:	1 month
Sponsored by:	The FreeBSD Foundation
2016-05-11 10:03:13 +00:00
..
2016-04-19 00:59:15 +00:00
2016-05-02 01:40:31 +00:00
2016-04-18 07:47:26 +00:00
MFH
2016-03-02 16:14:46 +00:00
2016-01-28 03:24:06 +00:00
MFH
2016-03-02 16:14:46 +00:00
MFH
2016-03-02 16:14:46 +00:00
2016-04-30 19:04:59 +00:00
2016-04-19 04:52:13 +00:00
2016-04-19 04:52:51 +00:00
MFH
2016-04-04 23:55:32 +00:00
MFH
2016-03-14 18:54:29 +00:00
MFH
2016-04-16 02:32:12 +00:00
2016-04-30 19:04:59 +00:00
MFH
2016-04-04 23:55:32 +00:00
2016-04-19 06:34:31 +00:00
MFH
2016-03-02 16:14:46 +00:00
2016-04-19 09:43:51 +00:00
2016-04-20 01:35:09 +00:00
2016-04-30 19:04:59 +00:00