myfree(tmpstr);
break;
}
- tmpfd = open(tmpstr, O_WRONLY|O_CREAT|O_TRUNC,
+ tmpfd = open(tmpstr, O_WRONLY|O_CREAT|O_TRUNC|O_SYNC,
S_IRUSR|S_IWUSR);
myfree(tmpstr);
if(tmpfd >= 0) {
dprintf(tmpfd, "%s", bounceaddr);
- fsync(tmpfd);
}
close(tmpfd);
tmpstr = concatstr(2, mailfilename, ".reciptto");
myfree(tmpstr);
break;
}
- tmpfd = open(tmpstr, O_WRONLY|O_CREAT|O_TRUNC,
+ tmpfd = open(tmpstr, O_WRONLY|O_CREAT|O_TRUNC|O_SYNC,
S_IRUSR|S_IWUSR);
myfree(tmpstr);
if(tmpfd >= 0) {
dprintf(tmpfd, "%s", to_addr);
- fsync(tmpfd);
}
close(tmpfd);
if(replyto) {
myfree(tmpstr);
break;
}
- tmpfd = open(tmpstr, O_WRONLY|O_CREAT|O_TRUNC,
+ tmpfd = open(tmpstr, O_WRONLY|O_CREAT|O_TRUNC|O_SYNC,
S_IRUSR|S_IWUSR);
myfree(tmpstr);
if(tmpfd >= 0) {
dprintf(tmpfd, "%s", replyto);
- fsync(tmpfd);
}
close(tmpfd);
}