[kexec-tools/f18] wrong ssh key fix

Dave Young yangrr at fedoraproject.org
Fri Dec 21 03:38:31 UTC 2012


commit 8fddece4e975a8a406421692f4e4463f0b57a8e6
Author: WANG Chao <chaowang at redhat.com>
Date:   Thu Dec 20 13:24:25 2012 +0800

    wrong ssh key fix
    
    To get sshkey from kdump.conf we should filter out comment.
    Fix it by change awk pattern to use ^sshkey
    
    Acked-by: Baoquan He <bhe at redhat.com>

 mkdumprd |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/mkdumprd b/mkdumprd
index 4c20798..af630c2 100644
--- a/mkdumprd
+++ b/mkdumprd
@@ -235,7 +235,7 @@ add_mount() {
 }
 
 # firstly get right SSH_KEY_LOCATION
-keyfile=$(awk '/sshkey/ {print $2}' $conf_file)
+keyfile=$(awk '/^sshkey/ {print $2}' $conf_file)
 if [ -f "$keyfile" ]; then
     # canonicalize the path
     SSH_KEY_LOCATION=$(/usr/bin/readlink -m $keyfile)


More information about the scm-commits mailing list