Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: 1eaad3ac3f39 ("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>

authored by

Antonio Alvarez Feijoo and committed by
Masami Hiramatsu (Google)
cf8c59a3 c9c3395d

+1 -1
+1 -1
tools/bootconfig/scripts/ftrace2bconf.sh
··· 93 93 } 94 94 95 95 event_is_enabled() { # enable-file 96 - test -f $1 & grep -q "1" $1 96 + test -f $1 && grep -q "1" $1 97 97 } 98 98 99 99 per_event_options() { # event-dir