Lines Matching refs:cuname
444 char cuname[PATH_MAX], tuname[PATH_MAX]; in conf_close() local
461 cuname[0] = tuname[0] = '\0'; in conf_close()
471 (void) snprintf(cuname, sizeof (cuname), "%sXXXXXX", in conf_close()
473 if ((cfd = mkstemp(cuname)) == -1) in conf_close()
477 (void) out("# writing changes to %s\n", cuname); in conf_close()
479 err(EF_SYS|EF_JMP, "chmod %s", cuname); in conf_close()
481 err(EF_SYS|EF_JMP, "fdopen on %s", cuname); in conf_close()
511 if (cuname[0] != 0) in conf_close()
512 (void) unlink(cuname); in conf_close()
521 if (cuname[0] != '\0') in conf_close()
522 if (rename(cuname, Confname) < 0) in conf_close()
523 err(EF_SYS, "rename %s to %s", cuname, Confname); in conf_close()