Fix a bug in which the user's choice to Cancel was not properly recognized.

This commit is contained in:
Devin Teske 2013-06-02 23:15:12 +00:00
parent 3b4e309862
commit 538d68ea69
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=251274

View file

@ -176,8 +176,12 @@ f_become_root_via_sudo()
retval=$?
# Catch X11-related errors
[ $retval -eq 255 ] &&
if [ $retval -eq 255 ]; then
f_die $retval "$password"
elif [ $retval -ne 0 ]; then
# User cancelled
exit $retval
fi
else
password=$( $DIALOG \
--title "$DIALOG_TITLE" \