projects
/
platform
/
core
/
api
/
email.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2085f9
)
Revert "Fix email API storage."
27/143327/2
accepted/tizen/4.0/unified/20170828.223807
accepted/tizen/unified/20170810.172144
submit/tizen/20170810.003449
submit/tizen_4.0/20170828.100002
tizen_4.0.IoT.p1_release
tizen_4.0.IoT.p2_release
tizen_4.0.m2_release
author
Jongkyu Koo
<jk.koo@samsung.com>
Wed, 9 Aug 2017 09:16:10 +0000
(09:16 +0000)
committer
Jongkyu Koo
<jk.koo@samsung.com>
Thu, 10 Aug 2017 00:12:21 +0000
(09:12 +0900)
This reverts commit
d2085f9aa65aa55f2abe0f0a0759cb65cb170100
.
Change-Id: I2920fb757ab8ca76a3f9563300e11b45573e42c5
src/email.c
patch
|
blob
|
history
diff --git
a/src/email.c
b/src/email.c
index
3b8082b
..
ee23c9d
100755
(executable)
--- a/
src/email.c
+++ b/
src/email.c
@@
-261,7
+261,7
@@
int email_set_body(email_h msg, const char *body)
}
free(prefix_path);
- file = f
dopen(mkstemp(file_path)
, "w");
+ file = f
open(file_path
, "w");
if (NULL == file) {
/* LCOV_EXCL_START */
SECURE_SLOGE("fopen() Fail(%d)", EMAILS_ERROR_OPERATION_FAILED);
@@
-271,7
+271,6
@@
int email_set_body(email_h msg, const char *body)
fputs(body, file);
fclose(file);
- unlink(file_path);
msg_s->mail->file_path_plain = file_path;