summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsdconfig/share/mustberoot.subr
diff options
context:
space:
mode:
authordteske <dteske@FreeBSD.org>2013-01-14 21:03:34 +0000
committerdteske <dteske@FreeBSD.org>2013-01-14 21:03:34 +0000
commit9bcfc5995dcac43a412f130666f5c7f2e676ce60 (patch)
tree5d1c54eb9cb7c4cc3ddf698587787c35121d5ac1 /usr.sbin/bsdconfig/share/mustberoot.subr
parent3386d88ffd8645a281dc469254815414cff93cd7 (diff)
downloadFreeBSD-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/share/mustberoot.subr')
-rw-r--r--usr.sbin/bsdconfig/share/mustberoot.subr2
1 files changed, 1 insertions, 1 deletions
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
OpenPOWER on IntegriCloud