From 68049e4ac8abda3b0d4c031414c837d1fdc6f9f9 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 4 Sep 2016 15:44:50 -0500 Subject: Don't abort on chown() failure for certificate files --- src/libtdeldap.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/libtdeldap.cpp b/src/libtdeldap.cpp index 868b423..93d79a1 100644 --- a/src/libtdeldap.cpp +++ b/src/libtdeldap.cpp @@ -4592,8 +4592,7 @@ int LDAPManager::generateClientCertificatePrivateKey(TQString privateKeyFile, in return -1; } if (chown(client_keyfile.ascii(), 0, 0) < 0) { - if (errstr) *errstr = TQString("Unable to change owner of \"%1\"").arg(client_keyfile); - return -1; + printf("[WARNING] Unable to change owner of \"%s\"", client_keyfile.ascii()); } // Clean up @@ -4653,8 +4652,7 @@ int LDAPManager::generateClientCertificatePublicCertificate(int expirydays, LDAP return -1; } if (chown(client_certfile.ascii(), 0, 0) < 0) { - if (errstr) *errstr = TQString("Unable to change owner of \"%1\"").arg(client_certfile); - return -1; + printf("[WARNING] Unable to change owner of \"%s\"", client_certfile.ascii()); } // Clean up -- cgit v1.2.1