# HG changeset patch # User Mark Doliner # Date 1247594173 0 # Node ID 18a96fe7887046eb6f99986a8b0ef8a81841bcad # Parent 6428ebfbc893562ae30318855b9298c3bcb7332b Don't fail an assertion and don't return FALSE if we can't create the certificate cache directory. This happens when passing -c /dev/null to pidgin when starting. I think this is a reasonable change, but I'm not very familiar with our certificate code diff -r 6428ebfbc893 -r 18a96fe78870 libpurple/certificate.c --- a/libpurple/certificate.c Tue Jul 14 17:40:04 2009 +0000 +++ b/libpurple/certificate.c Tue Jul 14 17:56:13 2009 +0000 @@ -923,9 +923,13 @@ poolpath = purple_certificate_pool_mkpath(&x509_tls_peers, NULL); ret = purple_build_dir(poolpath, 0700); /* Make it this user only */ + if (ret != 0) + purple_debug_info("certificate/tls_peers", + "Could not create %s. Certificates will not be cached.\n", + poolpath); + g_free(poolpath); - g_return_val_if_fail(ret == 0, FALSE); return TRUE; }