aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
Diffstat (limited to 'e-util')
-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) {