bcd5eb kdumpctl: Move temp file in get_kernel_size to global temp dir

Authored and Committed by liutgnu 2 years ago
    kdumpctl: Move temp file in get_kernel_size to global temp dir
    
    Resolves: bz2169720
    Upstream: src.fedoraproject.org/rpms/kexec-tools.git
    Conflicts: None
    
    commit ea00b7db43d12a48676f40614c2c5601a6cd34cc
    Author: Philipp Rudo <prudo@redhat.com>
    Date:   Fri May 5 17:14:41 2023 +0200
    
        kdumpctl: Move temp file in get_kernel_size to global temp dir
    
        Others will need to use a temporary files, too. In order to avoid
        potential clashes of multiple trap handlers move the local temp file
        into a global temp dir.
    
        While at it make sure that the trap handler returns the correct exit
        code.
    
        Signed-off-by: Philipp Rudo <prudo@redhat.com>
        Reviewed-by: Pingfan Liu <piliu@redhat.com>
        Reviewed-by: Coiby Xu <coxu@redhat.com>
    
    Signed-off-by: Philipp Rudo <prudo@redhat.com>
    Signed-off-by: Tao Liu <ltao@redhat.com>
    
        
file modified
+1 -0
file modified
+8 -2