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

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