summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2016-09-04 15:44:50 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2016-09-04 15:44:50 -0500
commit68049e4ac8abda3b0d4c031414c837d1fdc6f9f9 (patch)
treeb8185f230eedcf6ee959b8021ee707b8a2c0ed6a /src
parent39848c7e7c190eaf3396df89f1de87786a45be3e (diff)
downloadlibtdeldap-68049e4ac8abda3b0d4c031414c837d1fdc6f9f9.tar.gz
libtdeldap-68049e4ac8abda3b0d4c031414c837d1fdc6f9f9.zip
Don't abort on chown() failure for certificate files
Diffstat (limited to 'src')
-rw-r--r--src/libtdeldap.cpp6
1 files changed, 2 insertions, 4 deletions
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