projects
/
apps
/
madmutt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9faa4e0
)
I'm such a fool
author
Pierre Habouzit
<madcoder@debian.org>
Fri, 24 Nov 2006 23:01:43 +0000
(
00:01
+0100)
committer
Pierre Habouzit
<madcoder@debian.org>
Fri, 24 Nov 2006 23:01:43 +0000
(
00:01
+0100)
YES WE DO WANT TO WRITE IN OUR TEMPORARY FILES.
*g*
lib-lib/file.c
patch
|
blob
|
history
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);
}
- 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)