projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
I'm such a fool
[apps/madmutt.git]
/
lib-lib
/
file.c
diff --git
a/lib-lib/file.c
b/lib-lib/file.c
index
978895a
..
de3c75b
100644
(file)
--- a/
lib-lib/file.c
+++ b/
lib-lib/file.c
@@
-506,7
+506,7
@@
int m_tempfd(char *dst, ssize_t n, const char *dir, const char *fmt)
m_tempftplize(tpl, sizeof(tpl), fmt, raw);
}
m_tempftplize(tpl, sizeof(tpl), fmt, raw);
}
- fd = open(path, O_CREAT | O_EXCL | O_
WRONLY
| O_NOFOLLOW, 0600);
+ fd = open(path, O_CREAT | O_EXCL | O_
RDWR
| O_NOFOLLOW, 0600);
if (fd < 0) {
if (errno == EEXIST)
if (fd < 0) {
if (errno == EEXIST)