aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-util.c
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2003-03-15 08:34:11 +0800
committerChris Toshok <toshok@src.gnome.org>2003-03-15 08:34:11 +0800
commitec640140b34656fe35752aaaa20d128c301d24b5 (patch)
tree81b0233ed3ccd5cdb08ab0a4e77ac8f3de6b98af /e-util/e-util.c
parentcb382f6c30493da937bbc2e1b42aa6044cba5d74 (diff)
downloadgsoc2013-evolution-ec640140b34656fe35752aaaa20d128c301d24b5.tar.gz
gsoc2013-evolution-ec640140b34656fe35752aaaa20d128c301d24b5.tar.zst
gsoc2013-evolution-ec640140b34656fe35752aaaa20d128c301d24b5.zip
ugh, we need to make sure the file is opened for writing. or the flags
2003-03-14 Chris Toshok <toshok@ximian.com> * gal/util/e-util.c (e_write_file): ugh, we need to make sure the file is opened for writing. or the flags with O_WRONLY. svn path=/trunk/; revision=20304
Diffstat (limited to 'e-util/e-util.c')
-rw-r--r--e-util/e-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/e-util/e-util.c b/e-util/e-util.c
index b830f654ee..4e3584a059 100644
--- a/e-util/e-util.c
+++ b/e-util/e-util.c
@@ -198,7 +198,7 @@ e_write_file(const char *filename, const char *data, int flags)
int fd;
int length = strlen(data);
int bytes;
- fd = open(filename, flags, 0666);
+ fd = open(filename, flags | O_WRONLY, 0666);
if (fd == -1)
return errno;
while (length > 0) {