From 042a789d76fa790c1720f475525981e62005e5c1 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Thu, 6 Sep 2001 18:24:19 +0000 Subject: Have to specify a mode when using O_CREAT. * e-msg-composer.c (save): Have to specify a mode when using O_CREAT. svn path=/trunk/; revision=12652 --- composer/e-msg-composer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'composer/e-msg-composer.c') diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index c3d4ec1da7..6a2b49ab08 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -868,7 +868,7 @@ save (EMsgComposer *composer, return; /* check to see if we already have the file */ - if ((fd = open (my_file_name, O_RDONLY | O_CREAT | O_EXCL)) == -1) { + if ((fd = open (my_file_name, O_RDONLY | O_CREAT | O_EXCL, 0777)) == -1) { GtkWidget *dialog, *label; dialog = gnome_dialog_new (_("Warning!"), -- cgit