Page MenuHomeFreeBSD

Further simplify arguments to init.
ClosedPublic

Authored by brooks on Wed, Dec 5, 6:40 PM.

Details

Summary

With the removal of BOOTCDROM and fastboot support, this code always
passed "-s" or "--". The latter simply terminates getopt(3) processing
in init so we only need to pass "-s" in the single user case, or nothing
in other cases.

The passing of "--" seems to have been done to ensure that the number of
arguments passed to init was always the same and thus that argc was the
same.

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

brooks created this revision.Wed, Dec 5, 6:40 PM
jhb accepted this revision.Wed, Dec 5, 6:55 PM

Thanks

This revision is now accepted and ready to land.Wed, Dec 5, 6:55 PM
kib accepted this revision.Wed, Dec 5, 7:06 PM
This revision was automatically updated to reflect the committed changes.