[gaim-migrate @ 14958]

Thu, 22 Dec 2005 14:58:45 +0000

author
Daniel Atallah <datallah@pidgin.im>
date
Thu, 22 Dec 2005 14:58:45 +0000
changeset 12622
55c9c22a3885
parent 12621
e32fc2224c7d
child 12623
4f1fe7e1f808

[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).

src/util.c file | annotate | diff | comparison | revisions
--- a/src/util.c	Thu Dec 22 13:56:18 2005 +0000
+++ b/src/util.c	Thu Dec 22 14:58:45 2005 +0000
@@ -2098,12 +2098,14 @@
 		return FALSE;
 	}
 
+#ifndef _WIN32
 	/* Set file permissions */
 	if (chmod(filename_temp, S_IRUSR | S_IWUSR) == -1)
 	{
 		gaim_debug_error("util", "Error setting permissions of file %s: %s\n",
 						 filename_temp, strerror(errno));
 	}
+#endif
 
 	/* Remove the old file, if it exists */
 	if (g_file_test(filename_full, G_FILE_TEST_EXISTS))

mercurial