Lines Matching defs:cuname
452 char cuname[PATH_MAX], tuname[PATH_MAX];
469 cuname[0] = tuname[0] = '\0';
479 (void) snprintf(cuname, sizeof (cuname), "%sXXXXXX",
481 if ((cfd = mkstemp(cuname)) == -1)
485 (void) out("# writing changes to %s\n", cuname);
487 err(EF_SYS|EF_JMP, "chmod %s", cuname);
489 err(EF_SYS|EF_JMP, "fdopen on %s", cuname);
519 if (cuname[0] != 0)
520 (void) unlink(cuname);
529 if (cuname[0] != '\0')
530 if (rename(cuname, Confname) < 0)
531 err(EF_SYS, "rename %s to %s", cuname, Confname);