projects
/
gsu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
1d3a993
)
gsu: Fix com_prefs() for invalid preferences.
author
Andre Noll
<maan@systemlinux.org>
Thu, 25 Mar 2010 14:23:25 +0000
(15:23 +0100)
committer
Andre Noll
<maan@tuebingen.mpg.de>
Fri, 29 Aug 2014 19:36:07 +0000
(21:36 +0200)
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
patch
|
blob
|
history
diff --git
a/funcs/gsu
b/funcs/gsu
index d72f54f4faa9dfcf30e4baf8f1608e5972cc4cc5..7e066f7664016186cba91db735977e36dfd5c164 100644
(file)
--- 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