mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Allow "no" answer on login class prompt override non-empty
/etc/adduser.conf defaultclass with empty one
This commit is contained in:
parent
84dc96f1be
commit
a0c103b58d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=25372
@ -24,7 +24,7 @@
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
# $Id: adduser.perl,v 1.28 1997/03/09 12:21:45 wosch Exp $
|
||||
# $Id: adduser.perl,v 1.29 1997/05/01 22:55:58 ache Exp $
|
||||
|
||||
|
||||
# read variables
|
||||
@ -397,7 +397,8 @@ sub new_users_class {
|
||||
local($def) = @_;
|
||||
local($class);
|
||||
|
||||
$class = &confirm_list("Enter login class", 1, $def, "");
|
||||
$class = &confirm_list("Enter login class:", 1, $def, ($def, "no"));
|
||||
$class = "" if $class eq "no";
|
||||
return $class;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user