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(a)redhat.com>
---
kdump-lib.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kdump-lib.sh b/kdump-lib.sh
index 4df5315..e73ac09 100755
--- a/kdump-lib.sh
+++ b/kdump-lib.sh
@@ -20,5 +20,5 @@ is_raw_dump_target()
strip_comments()
{
- echo $1 | sed -e 's/\(.*\)#.*/\1/'
+ echo $@ | sed -e 's/\(.*\)#.*/\1/'
}
--
1.8.3.1