# HG changeset patch # User Eric Warmenhoven # Date 955850357 0 # Node ID f7a5f376f54e4d56156b040a5d4a845ae98b3b97 # Parent 521db4bf5f28ca3c869d24f00616d0c723ebdb9a [gaim-migrate @ 133] I'm not touching this anymore, I swear. committer: Tailor Script diff -r 521db4bf5f28 -r f7a5f376f54e plugins/spellchk.c --- a/plugins/spellchk.c Sun Apr 16 00:57:38 2000 +0000 +++ b/plugins/spellchk.c Sun Apr 16 01:59:17 2000 +0000 @@ -94,9 +94,9 @@ buf = malloc(1000); snprintf(buf, 1000, "%s/.gaim/dict", getenv("HOME")); - fh = open(buf, O_RDONLY); + fh = open(buf, O_RDONLY, 0600); if (fh == -1) { - fh = open(buf, O_TRUNC | O_WRONLY | O_CREAT); + fh = open(buf, O_TRUNC | O_WRONLY | O_CREAT, 0600); if (fh != -1) { write(fh, defaultconf, strlen(defaultconf)); close(fh); @@ -303,7 +303,7 @@ char *a, *b; snprintf(buf, sizeof buf, "%s/.gaim/dict", getenv("HOME")); - fh = open(buf, O_TRUNC | O_WRONLY | O_CREAT); + fh = open(buf, O_TRUNC | O_WRONLY | O_CREAT, 0600); if (fh != 1) { while (gtk_clist_get_text(GTK_CLIST(list), i, 0, &a)) { gtk_clist_get_text(GTK_CLIST(list), i, 1, &b);