90223d kdump-lib.sh: Escape '|' for 'failure_action|default' in is_dump_to_rootfs

Authored and Committed by liutgnu 2 years ago
1 file changed. 1 lines added. 1 lines removed.
    kdump-lib.sh: Escape '|' for 'failure_action|default' in is_dump_to_rootfs
    
    resolves: bz2031735
    upstream: fedora
    conflict: none
    
    commit 2bd59ee156ee7646e4c9fcacb72667e016e07ffe (origin/rawhide, origin/main)
    Author: Tao Liu <ltao@redhat.com>
    Date:   Thu Jan 6 11:46:54 2022 +0800
    
        kdump-lib.sh: Escape '|' for 'failure_action|default' in is_dump_to_rootfs
    
        The '|' in 'failure_action|default' should be replaced with '\|' when
        passed to kdump_get_conf_val function. Because '|' needs to be escaped
        to mean OR operation in sed regex, otherwise it will consider
        'failure_action|default' as a whole string.
    
        Fixes: ab1ef78 ("kdump-lib.sh: use kdump_get_conf_val to read config values")
    
        Signed-off-by: Tao Liu <ltao@redhat.com>
        Acked-by: Coiby Xu <coxu@redhat.com>
    
    Signed-off-by: Tao Liu <ltao@redhat.com>
    
        
file modified
+1 -1