mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
tools/bootconfig: fix single & used for logical condition
A single & will create a background process and return true, so the grep
command will run even if the file checked in the first condition does not
exist.
Link: https://lore.kernel.org/all/20230112114215.17103-1-antonio.feijoo@suse.com/
Fixes: 1eaad3ac3f
("tools/bootconfig: Use per-group/all enable option in ftrace2bconf script")
Signed-off-by: Antonio Alvarez Feijoo <antonio.feijoo@suse.com>
Cc: stable@vger.kernel.org
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
This commit is contained in:
parent
c9c3395d5e
commit
cf8c59a375
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ referred_vars() {
|
|||
}
|
||||
|
||||
event_is_enabled() { # enable-file
|
||||
test -f $1 & grep -q "1" $1
|
||||
test -f $1 && grep -q "1" $1
|
||||
}
|
||||
|
||||
per_event_options() { # event-dir
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue