--- a/finch/libfinch.c Tue May 06 18:27:58 2014 +0200 +++ b/finch/libfinch.c Wed May 07 11:07:45 2014 +0200 @@ -268,7 +268,6 @@ gboolean opt_version = FALSE; char *opt_config_dir_arg = NULL; gboolean debug_enabled = FALSE; - GStatBuf st; struct option long_options[] = { {"config", required_argument, NULL, 'c'}, @@ -360,8 +359,8 @@ 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_mkdir(path, S_IRUSR | S_IWUSR | S_IXUSR) != 0 && errno != EEXIST) + fprintf(stderr, "Couldn't create plugins dir\n"); purple_plugins_add_search_path(path); g_free(path);