comparison src/util.c @ 12622:b7860c9902f2

[gaim-migrate @ 14958] This will prevent error messages when the gaim_user_dir is non-ASCII (the call doesn't actually do anything on win32 anyway). committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Thu, 22 Dec 2005 14:58:45 +0000
parents 13599d978a31
children 26647ddcc9c5
comparison
equal deleted inserted replaced
12621:8aa0a62cf080 12622:b7860c9902f2
2096 g_free(filename_full); 2096 g_free(filename_full);
2097 g_free(filename_temp); 2097 g_free(filename_temp);
2098 return FALSE; 2098 return FALSE;
2099 } 2099 }
2100 2100
2101 #ifndef _WIN32
2101 /* Set file permissions */ 2102 /* Set file permissions */
2102 if (chmod(filename_temp, S_IRUSR | S_IWUSR) == -1) 2103 if (chmod(filename_temp, S_IRUSR | S_IWUSR) == -1)
2103 { 2104 {
2104 gaim_debug_error("util", "Error setting permissions of file %s: %s\n", 2105 gaim_debug_error("util", "Error setting permissions of file %s: %s\n",
2105 filename_temp, strerror(errno)); 2106 filename_temp, strerror(errno));
2106 } 2107 }
2108 #endif
2107 2109
2108 /* Remove the old file, if it exists */ 2110 /* Remove the old file, if it exists */
2109 if (g_file_test(filename_full, G_FILE_TEST_EXISTS)) 2111 if (g_file_test(filename_full, G_FILE_TEST_EXISTS))
2110 { 2112 {
2111 if (g_unlink(filename_full) == -1) 2113 if (g_unlink(filename_full) == -1)