comparison libpurple/protocols/silc10/buddy.c @ 21284:6de09629f091

propagate from branch 'im.pidgin.pidgin.next.minor' (head 0c9637482b845cc65e95a26e144697391c51133f) to branch 'im.pidgin.pidgin' (head e3a6991e78dac328f13804950fee54dfb8afc3c5)
author Ka-Hing Cheung <khc@hxbc.us>
date Sat, 10 Nov 2007 04:52:20 +0000
parents a20ef7180680 77a35a382a73
children eb624956319a
comparison
equal deleted inserted replaced
21283:406aa3be6b32 21284:6de09629f091
937 return; 937 return;
938 938
939 /* Create dir if it doesn't exist */ 939 /* Create dir if it doesn't exist */
940 if ((g_stat(filename, &st)) == -1) { 940 if ((g_stat(filename, &st)) == -1) {
941 if (errno == ENOENT) { 941 if (errno == ENOENT) {
942 if (pw->pw_uid == geteuid()) 942 if (pw->pw_uid == geteuid()) {
943 g_mkdir(filename, 0755); 943 int ret = g_mkdir(filename, 0755);
944 if (ret < 0)
945 return;
946 }
944 } 947 }
945 } 948 }
946 949
947 /* Save VCard */ 950 /* Save VCard */
948 g_snprintf(filename2, sizeof(filename2) - 1, 951 g_snprintf(filename2, sizeof(filename2) - 1,