finch/finch.c

branch
release-2.x.y
changeset 35991
e6937e52930b
parent 35979
ca8204d663bf
child 35995
d0bbb2dad7f3
--- a/finch/finch.c	Tue May 06 18:28:56 2014 +0200
+++ b/finch/finch.c	Tue May 06 19:38:50 2014 +0200
@@ -379,8 +379,10 @@
 	purple_idle_set_ui_ops(finch_idle_get_ui_ops());
 
 	path = g_build_filename(purple_user_dir(), "plugins", NULL);
-	if (!g_stat(path, &st))
-		g_mkdir(path, S_IRUSR | S_IWUSR | S_IXUSR);
+	if (!g_stat(path, &st)) {
+		if (g_mkdir(path, S_IRUSR | S_IWUSR | S_IXUSR) != 0)
+			fprintf(stderr, "Couldn't create plugins dir\n");
+	}
 	purple_plugins_add_search_path(path);
 	g_free(path);
 

mercurial