changeset 123:f7a5f376f54e

[gaim-migrate @ 133] I'm not touching this anymore, I swear. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sun, 16 Apr 2000 01:59:17 +0000
parents 521db4bf5f28
children 5f294f7c4f2e
files plugins/spellchk.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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);