summaryrefslogtreecommitdiff
blob: dc9b0ec6e9cb189adf2d770bab580de44e297ab9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -Naur hydra-5.4-src-orig/hydra-gtk/src/callbacks.c hydra-5.4-src-patch/hydra-gtk/src/callbacks.c
--- hydra-5.4-src-orig/hydra-gtk/src/callbacks.c	2005-09-22 15:19:27.000000000 +0000
+++ hydra-5.4-src-patch/hydra-gtk/src/callbacks.c	2009-03-20 17:59:40.000000000 +0000
@@ -663,7 +663,7 @@
 		
 		text = gtk_text_buffer_get_text(outputbuf, &start, &end, TRUE);
 
-		fd = open(filename, O_CREAT | O_TRUNC | O_WRONLY);
+		fd = open(filename, O_CREAT | O_TRUNC | O_WRONLY, S_IRUSR | S_IWUSR);
 		if ( fd > 0 ) {
 			write(fd, text, strlen(text));
 			close(fd);