diff options
author | Joe Lawrence <[email protected]> | 2019-02-08 15:57:37 -0500 |
---|---|---|
committer | Petr Mladek <[email protected]> | 2019-02-12 10:58:47 +0100 |
commit | fbb76d579dff4a2e332566dcd1d5979ac92bc34b (patch) | |
tree | 70a6a8efcec81458ff50b1774469805af3d8db54 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | a087cdd4073b78f4739ce6709daeb4f3267b4dbf (diff) |
livepatch/selftests: use "$@" to preserve argument list
The livepatch selftest functions.sh library uses "$*" and an
intermediate variable to extract and then pass arguments from function
to function call. The effect of this combination is that the argument
list is flattened into a single argument. Sometimes this is benign, but
in cases like __load_mod(), the modprobe invocation will interpret all
the module parameters as a single parameter.
Drop the intermediate variable and use the "$@" special parameter as
described in the bash manual.
Link: https://www.gnu.org/software/bash/manual/bash.html#Special-Parameters
Signed-off-by: Joe Lawrence <[email protected]>
Reviewed-by: Kamalesh Babulal <[email protected]>
Acked-by: Miroslav Benes <[email protected]>
Signed-off-by: Petr Mladek <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions