Lines Matching refs:tn
506 char n[MAX_FNAME], envstr[MAX_ENVSTR], tn[MAX_FNAME];
519 (void) snprintf(tn, sizeof(tn), CRON_TAB(n));
521 if (!(tmp = fopen(tn, "w+"))) {
522 warn("%s", tn);
544 warnx("error while writing new crontab to %s", tn);
545 fclose(tmp); unlink(tn);
575 fclose(tmp); unlink(tn);
582 if (chown(tn, ROOT_UID, -1) < OK)
586 fclose(tmp); unlink(tn);
593 if (chmod(tn, 0600) < OK)
597 fclose(tmp); unlink(tn);
603 unlink(tn);
608 if (rename(tn, n)) {
609 warn("error renaming %s to %s", tn, n);
610 unlink(tn);
617 * Creating the 'tn' temp file has already updated the