Don't abort on chown() failure for certificate files

pull/1/head
Timothy Pearson 8 years ago
parent 39848c7e7c
commit 68049e4ac8

@ -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

Loading…
Cancel
Save