kdump-lib.sh: strip_comments is not implemented correcty
In mkdumprd, strip_comments is not implemented correctly. Since arguments passed, strip_comments only take $1 and misses others. This caused problems. Such as below line, current code will only get "makedumpfile" and pass it to $config_val finally, then parameters for makedumpfile are missed. core_collector makedumpfile -c --message-level 1 -d 31 Now modify function strip_comments. Signed-off-by: Baoquan He <bhe@redhat.com> Acked-by: WANG Chao <chaowang@redhat.com> Acked-by: Dave Young <dyoung@redhat.com>
This commit is contained in:
parent
514be15bf4
commit
a682315996
@ -20,5 +20,5 @@ is_raw_dump_target()
|
|||||||
|
|
||||||
strip_comments()
|
strip_comments()
|
||||||
{
|
{
|
||||||
echo $1 | sed -e 's/\(.*\)#.*/\1/'
|
echo $@ | sed -e 's/\(.*\)#.*/\1/'
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user