Mercurial > pidgin.yaz
changeset 4802:5b24e8e52e4a
[gaim-migrate @ 5122]
this might help figure it out
i still haven't done those dishes
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Sun, 16 Mar 2003 22:34:43 +0000 |
parents | ef6d17c83328 |
children | 6f04901ef729 |
files | src/prpl.c |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/prpl.c Sun Mar 16 20:41:19 2003 +0000 +++ b/src/prpl.c Sun Mar 16 22:34:43 2003 +0000 @@ -26,6 +26,7 @@ #include <sys/stat.h> #include <unistd.h> #include <string.h> +#include <errno.h> #ifdef _WIN32 #include "win32dep.h" @@ -618,8 +619,12 @@ g_free(random); - if(!g_file_test(dirname, G_FILE_TEST_IS_DIR)) - mkdir(dirname, S_IRUSR | S_IWUSR | S_IXUSR); + if(!g_file_test(dirname, G_FILE_TEST_IS_DIR)) { + debug_printf("creating icon cache directory\n"); + if(mkdir(dirname, S_IRUSR | S_IWUSR | S_IXUSR) < 0) + debug_printf("error creating directory %s: %s\n", + dirname, strerror(errno)); + } g_free(dirname);