comparison src/blist.c @ 8549:1a016d979ce0

[gaim-migrate @ 9291] if we can't write a file, we certainly shouldn't toast the file we have committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Thu, 01 Apr 2004 21:24:17 +0000
parents 87bd4d4ff499
children 9ee2542d1104
comparison
equal deleted inserted replaced
8548:fae482a76700 8549:1a016d979ce0
2491 fclose(file); 2491 fclose(file);
2492 chmod(filename, S_IRUSR | S_IWUSR); 2492 chmod(filename, S_IRUSR | S_IWUSR);
2493 } else { 2493 } else {
2494 gaim_debug(GAIM_DEBUG_ERROR, "blist save", "Unable to write %s\n", 2494 gaim_debug(GAIM_DEBUG_ERROR, "blist save", "Unable to write %s\n",
2495 filename); 2495 filename);
2496 g_free(filename);
2497 return;
2496 } 2498 }
2497 2499
2498 filename_real = g_build_filename(user_dir, "blist.xml", NULL); 2500 filename_real = g_build_filename(user_dir, "blist.xml", NULL);
2499 2501
2500 if(rename(filename, filename_real) < 0) 2502 if(rename(filename, filename_real) < 0)