diff -Naur gaim-encryption-2.22/keys.c gaim-encryption-2.22-binesh/keys.c --- gaim-encryption-2.22/keys.c Sun Mar 14 18:46:59 2004 +++ gaim-encryption-2.22-binesh/keys.c Tue Mar 23 21:42:19 2004 @@ -356,7 +356,7 @@ fd = open(path, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); if (fd == -1) { gaim_debug(GAIM_DEBUG_ERROR, "gaim-encryption", "Error opening key file %s for write\n", path); - if (chmod(path, S_IWUSR) == -1) { + if (chmod(path, 0600) == -1) { gaim_debug(GAIM_DEBUG_ERROR, "gaim-encryption", "Unable to change file mode, aborting\n"); g_snprintf(errbuf, sizeof(errbuf),