Lines Matching refs:tmpfile
85 char *tmpfile;
187 tmpfile = concatenate(tmpdir, STR(buf), (char *) 0);
189 if ((dst = vstream_fopen(tmpfile, O_WRONLY | O_CREAT | O_EXCL, 0600)) == 0
192 || (dst = vstream_fopen(tmpfile, O_WRONLY | O_CREAT | O_EXCL, 0600)) == 0)) {
194 "create maildir file %s: %m", tmpfile);
202 msg_fatal("fstat %s: %m", tmpfile);
214 if (sane_link(tmpfile, newfile) < 0
217 || sane_link(tmpfile, newfile) < 0)) {
223 if (unlink(tmpfile) < 0)
224 msg_warn("remove %s: %m", tmpfile);
254 myfree(tmpfile);