[Spice-commits] gtk/spice-option.c
Marc-André Lureau
elmarco at kemper.freedesktop.org
Fri Apr 25 09:06:13 PDT 2014
gtk/spice-option.c | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 8c8948597ec2a7f7f50468020bcd37046762813d
Author: Marc-André Lureau <marcandre.lureau at redhat.com>
Date: Thu Apr 24 15:45:21 2014 +0200
option: check that default ca-file exists
Don't set default ca-file path if the file doesn't exists.
diff --git a/gtk/spice-option.c b/gtk/spice-option.c
index 2d03912..0a0f9ef 100644
--- a/gtk/spice-option.c
+++ b/gtk/spice-option.c
@@ -226,6 +226,8 @@ void spice_set_session_option(SpiceSession *session)
if (!homedir)
homedir = g_get_home_dir();
ca_file = g_build_filename(homedir, ".spicec", "spice_truststore.pem", NULL);
+ if (!g_file_test(ca_file, G_FILE_TEST_IS_REGULAR))
+ g_clear_pointer(&ca_file, g_free);
}
if (disable_effects) {
More information about the Spice-commits
mailing list