When the user locking feature was added to pw(8), the help text in the program and the manual page were not ammended. The former problem causes a segmentation fault due to an out-of-range array index when trying to do `pw (un)lock help`. The latter, combined with the former, makes it unnecessarily difficult to figure out what lock and unlock do. Fix: The following patch, - documents the 'lock' and 'unlock' commands in the pw.8 manual page, - adds help text to pw.c which prevents the segmentation fault, and - mentions, in the built-in help, that the '-q' option is accepted for the 'usernext' and 'groupnext' commands (not entirely relevant to this problem). How-To-Repeat: dima@hornet% /usr/sbin/pw lock help Segmentation fault (core dumped) dima@hornet% /usr/sbin/pw unlock help Segmentation fault (core dumped)
State Changed From-To: open->suspended Patch committed to -current, awaiting MFC.
Responsible Changed From-To: freebsd-bugs->dd My PR.
State Changed From-To: suspended->closed MFC'd.