summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsdconfig/usermgmt
diff options
context:
space:
mode:
authordteske <dteske@FreeBSD.org>2013-06-02 23:12:32 +0000
committerdteske <dteske@FreeBSD.org>2013-06-02 23:12:32 +0000
commit8e41e7110ab8bc3ba2e553050365b15800fa92ba (patch)
tree15e68ee902a2175d6156baea246bf39c085585ee /usr.sbin/bsdconfig/usermgmt
parent12134e26ca0ec20150a0177f47621ac54d429cce (diff)
downloadFreeBSD-src-8e41e7110ab8bc3ba2e553050365b15800fa92ba.zip
FreeBSD-src-8e41e7110ab8bc3ba2e553050365b15800fa92ba.tar.gz
Change the name of a couple of functions in `usermgmt/user_input.subr' to
make their purpose more clear by their names: f_dialog_input_change() and f_dialog_input_expire() Are now (respectively): f_dialog_input_expire_password() and f_dialog_input_expire_account() Upon revisit to this portion of code, the former names were too confusing.
Diffstat (limited to 'usr.sbin/bsdconfig/usermgmt')
-rw-r--r--usr.sbin/bsdconfig/usermgmt/share/user_input.subr8
-rwxr-xr-xusr.sbin/bsdconfig/usermgmt/userinput8
2 files changed, 8 insertions, 8 deletions
diff --git a/usr.sbin/bsdconfig/usermgmt/share/user_input.subr b/usr.sbin/bsdconfig/usermgmt/share/user_input.subr
index 55bce70..746fa11 100644
--- a/usr.sbin/bsdconfig/usermgmt/share/user_input.subr
+++ b/usr.sbin/bsdconfig/usermgmt/share/user_input.subr
@@ -441,14 +441,14 @@ f_dialog_input_class()
return $SUCCESS
}
-# f_dialog_input_change [$seconds]
+# f_dialog_input_expire_password [$seconds]
#
# Allow the user to enter a date/time (in number-of-seconds since the `epoch')
# for when a given user's password must be changed. If the user does not cancel
# or press ESC, the $pw_password_expire variable will hold the newly-
# configured value upon return.
#
-f_dialog_input_change()
+f_dialog_input_expire_password()
{
local prompt="$msg_password_expires_on"
local menu_list="
@@ -622,14 +622,14 @@ f_dialog_input_change()
return $SUCCESS
}
-# f_dialog_input_expire [$seconds]
+# f_dialog_input_expire_account [$seconds]
#
# Allow the user to enter a date/time (in number-of-seconds since the `epoch')
# for when a given user's account should become expired. If the user does not
# cancel or press ESC, the $pw_account_expire variable will hold the newly-
# configured value upon return.
#
-f_dialog_input_expire()
+f_dialog_input_expire_account()
{
local prompt="$msg_account_expires_on"
local menu_list="
diff --git a/usr.sbin/bsdconfig/usermgmt/userinput b/usr.sbin/bsdconfig/usermgmt/userinput
index df79ac5..3df184c 100755
--- a/usr.sbin/bsdconfig/usermgmt/userinput
+++ b/usr.sbin/bsdconfig/usermgmt/userinput
@@ -254,8 +254,8 @@ if [ "$mode" = "Add" ]; then
f_dialog_input_gid || exit 0
f_dialog_input_member_groups || exit 0
f_dialog_input_class || exit 0
- f_dialog_input_change || exit 0
- f_dialog_input_expire || exit 0
+ f_dialog_input_expire_password || exit 0
+ f_dialog_input_expire_account || exit 0
f_dialog_input_home_dir "$homeprefix/$pw_name" || exit 0
pw_dotfiles_create="$msg_no"
if [ ! -d "$homeprefix/$pw_name" ]; then
@@ -472,10 +472,10 @@ while :; do
f_dialog_input_class "$pw_class"
;;
8) # Password Expire on
- f_dialog_input_change "$pw_password_expire"
+ f_dialog_input_expire_password "$pw_password_expire"
;;
9) # Account Expire on
- f_dialog_input_expire "$pw_account_expire"
+ f_dialog_input_expire_account "$pw_account_expire"
;;
A) # Home Directory
f_dialog_input_home_dir "$pw_home_dir"
OpenPOWER on IntegriCloud