From 9bcfc5995dcac43a412f130666f5c7f2e676ce60 Mon Sep 17 00:00:00 2001 From: dteske Date: Mon, 14 Jan 2013 21:03:34 +0000 Subject: Don't use f_show_msg() unless printf(1) syntax is required (this reduces the number of unnecessary forks). --- usr.sbin/bsdconfig/share/mustberoot.subr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin/bsdconfig/share/mustberoot.subr') diff --git a/usr.sbin/bsdconfig/share/mustberoot.subr b/usr.sbin/bsdconfig/share/mustberoot.subr index ebce9c1..2ead592 100644 --- a/usr.sbin/bsdconfig/share/mustberoot.subr +++ b/usr.sbin/bsdconfig/share/mustberoot.subr @@ -128,7 +128,7 @@ f_become_root_via_sudo() 1) # Always try sudo(8) when run as $user local err if ! err=$( touch "$checkpath" 2>&1 ); then - f_show_msg "%s" "$err" + f_dialog_msgbox "$err" else f_show_msg "$msg_created_path" "$checkpath" fi -- cgit v1.1