# HG changeset patch # User Daniel Atallah # Date 1155823640 0 # Node ID b04e36dae7af324557d20e9d0effc90a2cbfd77a # Parent 879bb47cff8ec3c184a94820c6b68e56069ab834 [gaim-migrate @ 16815] If g_open isn't a macro, we need to specify the mode variable committer: Tailor Script diff -r 879bb47cff8e -r b04e36dae7af src/protocols/silc/util.c --- a/src/protocols/silc/util.c Thu Aug 17 10:04:21 2006 +0000 +++ b/src/protocols/silc/util.c Thu Aug 17 14:07:20 2006 +0000 @@ -234,7 +234,7 @@ } #endif - if ((fd = g_open(file_private_key, O_RDONLY)) != -1) { + if ((fd = g_open(file_private_key, O_RDONLY, 0)) != -1) { if ((fstat(fd, &st)) == -1) { gaim_debug_error("silc", "Couldn't stat '%s' private key, error: %s\n", file_private_key, strerror(errno)); @@ -254,7 +254,7 @@ return FALSE; } - if ((fd = g_open(file_private_key, O_RDONLY)) != -1) { + if ((fd = g_open(file_private_key, O_RDONLY, 0)) != -1) { if ((fstat(fd, &st)) == -1) { gaim_debug_error("silc", "Couldn't stat '%s' private key, error: %s\n", file_private_key, strerror(errno));