Lines Matching refs:tmpfile
80 char *tmpfile;
181 tmpfile = concatenate(tmpdir, STR(buf), (char *) 0);
183 if ((dst = vstream_fopen(tmpfile, O_WRONLY | O_CREAT | O_EXCL, 0600)) == 0
186 || (dst = vstream_fopen(tmpfile, O_WRONLY | O_CREAT | O_EXCL, 0600)) == 0)) {
188 "create maildir file %s: %m", tmpfile);
196 msg_fatal("fstat %s: %m", tmpfile);
208 if (sane_link(tmpfile, newfile) < 0
211 || sane_link(tmpfile, newfile) < 0)) {
217 if (unlink(tmpfile) < 0)
218 msg_warn("remove %s: %m", tmpfile);
251 myfree(tmpfile);