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:
Baoquan He 2013-10-10 17:02:58 +08:00
parent 514be15bf4
commit a682315996
1 changed files with 1 additions and 1 deletions

View File

@ -20,5 +20,5 @@ is_raw_dump_target()
strip_comments()
{
echo $1 | sed -e 's/\(.*\)#.*/\1/'
echo $@ | sed -e 's/\(.*\)#.*/\1/'
}