Lines Matching refs:path_buf
430 static VSTRING *path_buf = 0; in exp_path_template() local
433 if (path_buf == 0) in exp_path_template()
434 path_buf = vstring_alloc(100); in exp_path_template()
436 VSTRING_RESET(path_buf); in exp_path_template()
438 while (strftime(STR(path_buf), vstring_avail(path_buf), template, lt) == 0) in exp_path_template()
439 VSTRING_SPACE(path_buf, vstring_avail(path_buf) + 100); in exp_path_template()
440 VSTRING_SKIP(path_buf); in exp_path_template()
441 return (path_buf); in exp_path_template()
460 VSTRING *path_buf; in mail_file_open() local
472 path_buf = exp_path_template(single_template, state->start_time); in mail_file_open()
482 for (len = VSTRING_LEN(path_buf); /* void */ ; vstring_truncate(path_buf, len)) { in mail_file_open()
486 vstring_sprintf_append(path_buf, ID_FORMAT, state->id); in mail_file_open()
487 if ((state->dump_file = vstream_fopen(STR(path_buf), in mail_file_open()
494 make_parent_dir(STR(path_buf), 0755); in mail_file_open()
497 msg_fatal("open %s: %m", STR(path_buf)); in mail_file_open()
504 if (shared_template != 0 && unlink(STR(path_buf)) < 0) in mail_file_open()
505 msg_fatal("unlink %s: %m", STR(path_buf)); in mail_file_open()