From b809fa90a89462bf30746325c9fe152851a000bd Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Thu, 25 Mar 2010 15:23:25 +0100 Subject: [PATCH] gsu: Fix com_prefs() for invalid preferences. The prefs command would print only empty values for all options that come after an invalid option. Refuse to execute com_prefs() in this case is the most simple fix. --- funcs/gsu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/funcs/gsu b/funcs/gsu index d72f54f..7e066f7 100644 --- a/funcs/gsu +++ b/funcs/gsu @@ -362,7 +362,7 @@ gsu() _gsu_init_errors _gsu_check_options if [[ "$ret" -lt 0 ]]; then - if [[ "$1" != "help" && "$1" != "man" && "$1" != "prefs" ]]; then + if [[ "$1" != "help" && "$1" != "man" ]]; then gsu_err_msg exit 1 fi -- 2.39.5