807a5cb certdb: Move chdir into subprocess call

Authored and Committed by cheimes 6 years ago
    certdb: Move chdir into subprocess call
    
    According to a comment, certutil may create files in the current working
    directory. Rather than changing the cwd of the current process,
    FreeIPA's certutil wrapper now changes cwd for the subprocess only.
    
    See: https://pagure.io/freeipa/issue/7416
    Signed-off-by: Christian Heimes <cheimes@redhat.com>
    Reviewed-By: Rob Crittenden <rcritten@redhat.com>
    
        
file modified
+8 -5
file modified
+0 -14