diff options
author | dteske <dteske@FreeBSD.org> | 2013-01-14 21:03:34 +0000 |
---|---|---|
committer | dteske <dteske@FreeBSD.org> | 2013-01-14 21:03:34 +0000 |
commit | 9bcfc5995dcac43a412f130666f5c7f2e676ce60 (patch) | |
tree | 5d1c54eb9cb7c4cc3ddf698587787c35121d5ac1 /usr.sbin/bsdconfig/password | |
parent | 3386d88ffd8645a281dc469254815414cff93cd7 (diff) | |
download | FreeBSD-src-9bcfc5995dcac43a412f130666f5c7f2e676ce60.zip FreeBSD-src-9bcfc5995dcac43a412f130666f5c7f2e676ce60.tar.gz |
Don't use f_show_msg() unless printf(1) syntax is required (this reduces the
number of unnecessary forks).
Diffstat (limited to 'usr.sbin/bsdconfig/password')
-rwxr-xr-x | usr.sbin/bsdconfig/password/password | 2 | ||||
-rw-r--r-- | usr.sbin/bsdconfig/password/share/password.subr | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/bsdconfig/password/password b/usr.sbin/bsdconfig/password/password index 6b9e57d..50d963d 100755 --- a/usr.sbin/bsdconfig/password/password +++ b/usr.sbin/bsdconfig/password/password @@ -72,7 +72,7 @@ f_mustberoot_init if f_dialog_input_password; then err=$( echo "$pw_password" | pw usermod $USER_ROOT -h 0 2>&1 ) || f_die $? "%s" "$err" - f_show_msg "$msg_password_changed" + f_dialog_msgbox "$msg_password_changed" fi return $SUCCESS diff --git a/usr.sbin/bsdconfig/password/share/password.subr b/usr.sbin/bsdconfig/password/share/password.subr index bf83df7..f4ebaab9 100644 --- a/usr.sbin/bsdconfig/password/share/password.subr +++ b/usr.sbin/bsdconfig/password/share/password.subr @@ -108,13 +108,13 @@ f_dialog_input_password() # Check for NULL entry if ! [ "$_password1" -o "$_password2" ]; then - f_show_msg "$msg_password_is_empty" + f_dialog_msgbox "$msg_password_is_empty" continue fi # Check for password mismatch if [ "$_password1" != "$_password2" ]; then - f_show_msg "$msg_passwords_do_not_match" + f_dialog_msgbox "$msg_passwords_do_not_match" continue fi |