diff options
author | Dan Winship <danw@src.gnome.org> | 2001-09-07 02:24:19 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2001-09-07 02:24:19 +0800 |
commit | 042a789d76fa790c1720f475525981e62005e5c1 (patch) | |
tree | abbd5983da54d09724fe737dc0675e7fa0871430 | |
parent | b0b7d720337424ea374e968a450976a04a5a3a35 (diff) | |
download | gsoc2013-evolution-042a789d76fa790c1720f475525981e62005e5c1.tar gsoc2013-evolution-042a789d76fa790c1720f475525981e62005e5c1.tar.gz gsoc2013-evolution-042a789d76fa790c1720f475525981e62005e5c1.tar.bz2 gsoc2013-evolution-042a789d76fa790c1720f475525981e62005e5c1.tar.lz gsoc2013-evolution-042a789d76fa790c1720f475525981e62005e5c1.tar.xz gsoc2013-evolution-042a789d76fa790c1720f475525981e62005e5c1.tar.zst gsoc2013-evolution-042a789d76fa790c1720f475525981e62005e5c1.zip |
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
-rw-r--r-- | composer/ChangeLog | 5 | ||||
-rw-r--r-- | composer/e-msg-composer.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog index e72fe1b1cc..0cff78a9fd 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,3 +1,8 @@ +2001-09-06 Dan Winship <danw@ximian.com> + + * e-msg-composer.c (save): Have to specify a mode when using + O_CREAT. + 2001-09-05 Ettore Perazzoli <ettore@ximian.com> * e-msg-composer.c (autosave_manager_query_load_orphans): 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!"), |