Blame SOURCES/0090-Ticket-49576-ds-replcheck-fix-certificate-directory-.patch

b663b9
From d385d452001c91d01893b5ddc9e47f8200223ce9 Mon Sep 17 00:00:00 2001
b663b9
From: Mark Reynolds <mreynolds@redhat.com>
b663b9
Date: Mon, 11 Jun 2018 11:52:57 -0400
b663b9
Subject: [PATCH] Ticket 49576 - ds-replcheck: fix certificate directory
b663b9
 verification
b663b9
b663b9
Description:  The tool would crash if you attempted to use a certificate
b663b9
              directory for conntacting replicas.
b663b9
b663b9
https://pagure.io/389-ds-base/issue/49576
b663b9
b663b9
Reviewed by: spichugi(Thanks!)
b663b9
---
b663b9
 ldap/admin/src/scripts/ds-replcheck | 2 +-
b663b9
 1 file changed, 1 insertion(+), 1 deletion(-)
b663b9
b663b9
diff --git a/ldap/admin/src/scripts/ds-replcheck b/ldap/admin/src/scripts/ds-replcheck
b663b9
index 661c9e0ce..62f911034 100755
b663b9
--- a/ldap/admin/src/scripts/ds-replcheck
b663b9
+++ b/ldap/admin/src/scripts/ds-replcheck
b663b9
@@ -1225,7 +1225,7 @@ def main():
b663b9
     # Validate certdir
b663b9
     opts['certdir'] = None
b663b9
     if args.certdir:
b663b9
-        if os.path.exists() and os.path.isdir(certdir):
b663b9
+        if os.path.exists(args.certdir) and os.path.isdir(args.certdir):
b663b9
             opts['certdir'] = args.certdir
b663b9
         else:
b663b9
             print("certificate directory ({}) does not exist or is not a directory".format(args.certdir))
b663b9
-- 
b663b9
2.17.0
b663b9