Mercurial > pidgin
comparison src/protocols/silc/util.c @ 14165:b04e36dae7af
[gaim-migrate @ 16815]
If g_open isn't a macro, we need to specify the mode variable
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Thu, 17 Aug 2006 14:07:20 +0000 |
parents | 0154168c414a |
children |
comparison
equal
deleted
inserted
replaced
14164:879bb47cff8e | 14165:b04e36dae7af |
---|---|
232 gaim_debug_error("silc", "You don't seem to own your public key!?\n"); | 232 gaim_debug_error("silc", "You don't seem to own your public key!?\n"); |
233 return FALSE; | 233 return FALSE; |
234 } | 234 } |
235 #endif | 235 #endif |
236 | 236 |
237 if ((fd = g_open(file_private_key, O_RDONLY)) != -1) { | 237 if ((fd = g_open(file_private_key, O_RDONLY, 0)) != -1) { |
238 if ((fstat(fd, &st)) == -1) { | 238 if ((fstat(fd, &st)) == -1) { |
239 gaim_debug_error("silc", "Couldn't stat '%s' private key, error: %s\n", | 239 gaim_debug_error("silc", "Couldn't stat '%s' private key, error: %s\n", |
240 file_private_key, strerror(errno)); | 240 file_private_key, strerror(errno)); |
241 close(fd); | 241 close(fd); |
242 return FALSE; | 242 return FALSE; |
252 NULL, NULL, NULL, FALSE)) { | 252 NULL, NULL, NULL, FALSE)) { |
253 gaim_debug_error("silc", "Couldn't create key pair\n"); | 253 gaim_debug_error("silc", "Couldn't create key pair\n"); |
254 return FALSE; | 254 return FALSE; |
255 } | 255 } |
256 | 256 |
257 if ((fd = g_open(file_private_key, O_RDONLY)) != -1) { | 257 if ((fd = g_open(file_private_key, O_RDONLY, 0)) != -1) { |
258 if ((fstat(fd, &st)) == -1) { | 258 if ((fstat(fd, &st)) == -1) { |
259 gaim_debug_error("silc", "Couldn't stat '%s' private key, error: %s\n", | 259 gaim_debug_error("silc", "Couldn't stat '%s' private key, error: %s\n", |
260 file_private_key, strerror(errno)); | 260 file_private_key, strerror(errno)); |
261 close(fd); | 261 close(fd); |
262 return FALSE; | 262 return FALSE; |