e0315a6 Check pager's executable before subprocess.Popen

Authored and Committed by okozlov 5 years ago
    Check pager's executable before subprocess.Popen
    
    Get the value of `PAGER` environment variable in case it's defined, check the executable, if it exists - use a pager, otherwise - print function.
    
    Fixes: https://pagure.io/freeipa/issue/7746
    Reviewed-By: Christian Heimes <cheimes@redhat.com>
    
        
file modified
+5 -3
file modified
+13 -2