# HG changeset patch # User Richard Laager # Date 1170568095 0 # Node ID 443915ab77a1f3189eaa0526887025a58ddf25e4 # Parent f61ad08739fcf14a4deba2f9852f88dd3dbc46d2 I had the wrong arguments for gaim_log_logger_new(). It didn't work, but I've fixed that now. Also, the is_deletable access() stuff won't work on win32, so it's just disabled there for now. diff -r f61ad08739fc -r 443915ab77a1 libpurple/log.c --- a/libpurple/log.c Sat Feb 03 21:43:29 2007 +0000 +++ b/libpurple/log.c Sun Feb 04 05:48:15 2007 +0000 @@ -590,7 +590,7 @@ gaim_prefs_add_string("/core/logging/format", "txt"); - html_logger = gaim_log_logger_new("html", _("HTML"), 8, + html_logger = gaim_log_logger_new("html", _("HTML"), 11, NULL, html_logger_write, html_logger_finalize, @@ -604,7 +604,7 @@ gaim_log_common_is_deletable); gaim_log_logger_add(html_logger); - txt_logger = gaim_log_logger_new("txt", _("Plain text"), 8, + txt_logger = gaim_log_logger_new("txt", _("Plain text"), 11, NULL, txt_logger_write, txt_logger_finalize, @@ -1027,13 +1027,20 @@ if (data->path == NULL) return FALSE; +#ifndef _WIN32 dirname = g_path_get_dirname(data->path); if (g_access(dirname, W_OK) == 0) { g_free(dirname); return TRUE; } + gaim_debug_info("log", "access(%s) failed: %s\n", dirname, strerror(errno)); g_free(dirname); +#else + /* Unless and until someone writes equivalent win32 code, + * we'll assume the file is deletable. */ + return TRUE; +#endif return FALSE; }