Fix a regression in the "Login Management" module introduced by r251242 in

which choosing to cancel the manual input of expiration time (in seconds
since the UNIX epoch) for either account expiration or password expiration
would see the original value lost.
This commit is contained in:
Devin Teske 2013-06-08 17:36:31 +00:00
parent f82913db88
commit 3196cddc5d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=251542

View File

@ -591,14 +591,16 @@ f_dialog_input_expire_password()
break ;;
4) # Enter value manually
local msg
local msg ret_secs
msg=$( printf "$msg_number_of_seconds_since_epoch" \
"$( date -r 1 "+%c %Z" )" )
# Return to menu if either ESC or Cancel/No
f_dialog_input _input \
f_dialog_input ret_secs \
"$msg" "$_input" "$hline" || continue
_input="$ret_secs"
# Taint-check the user's input
if ! f_isinteger "${_input:-0}"; then
f_dialog_msgbox \
@ -772,14 +774,16 @@ f_dialog_input_expire_account()
break ;;
4) # Enter value manually
local msg
local msg ret_secs
msg=$( printf "$msg_number_of_seconds_since_epoch" \
"$( date -r 1 "+%c %Z" )" )
# Return to menu if either ESC or Cancel/No
f_dialog_input _input "$msg" \
f_dialog_input ret_secs "$msg" \
"$_input" "$hline" || continue
_input="$ret_secs"
# Taint-check the user's input
if ! f_isinteger "${_input:-0}"; then
f_dialog_msgbox \