pidgin/pidgin

Use g_fchmod instead of fchmod to remove wrapper.

2019-10-30, Elliott Sales de Andrade
5f6a8bcd216d
Parents ff90f032afe4
Children dd7183cf0a71
Use g_fchmod instead of fchmod to remove wrapper.
--- a/libpurple/protocols/silc/util.c Wed Oct 30 21:58:52 2019 -0400
+++ b/libpurple/protocols/silc/util.c Wed Oct 30 22:04:59 2019 -0400
@@ -247,7 +247,7 @@
if ((st.st_mode & 0777) != 0600) {
purple_debug_warning("silc", "Wrong permissions in your private key file `%s'!\n"
"Trying to change them ...\n", file_private_key);
- if ((fd == -1) || (fchmod(fd, S_IRUSR | S_IWUSR)) == -1) {
+ if ((fd == -1) || (g_fchmod(fd, S_IRUSR | S_IWUSR)) == -1) {
purple_debug_error("silc",
"Failed to change permissions for private key file!\n"
"Permissions for your private key file must be 0600.\n");
--- a/libpurple/win32/libc_interface.h Wed Oct 30 21:58:52 2019 -0400
+++ b/libpurple/win32/libc_interface.h Wed Oct 30 22:04:59 2019 -0400
@@ -145,9 +145,6 @@
#define rename( oldname, newname ) \
g_rename( oldname, newname )
-/* sys/stat.h */
-#define fchmod(a,b)
-
/* time.h */
/* XXX: it may be also defined by pthread.h */
#undef localtime_r