Home
last modified time | relevance | path

Searched refs:newqf (Results 1 – 2 of 2) sorted by relevance

/freebsd-12-stable/lib/libutil/
Dquotafile.c519 struct quotafile *newqf; in quota_convert() local
539 if ((newqf = calloc(1, sizeof(*qf))) == NULL) { in quota_convert()
543 *newqf = *qf; in quota_convert()
544 snprintf(newqf->qfname, MAXPATHLEN + 1, "%s_%d.orig", qf->qfname, in quota_convert()
546 if (rename(qf->qfname, newqf->qfname) < 0) { in quota_convert()
547 free(newqf); in quota_convert()
550 if ((newqf->fd = open(qf->qfname, O_RDWR|O_CREAT|O_TRUNC|O_CLOEXEC, in quota_convert()
555 newqf->wordsize = wordsize; in quota_convert()
562 if (write(newqf->fd, &dqh, sizeof(dqh)) != sizeof(dqh)) { in quota_convert()
568 fchown(newqf->fd, 0, grp ? grp->gr_gid : 0); in quota_convert()
[all …]
/freebsd-12-stable/contrib/sendmail/src/
Dqueue.c8735 char newqf[MAXPATHLEN]; local
8945 (void) sm_strlcpy(newqf, oldqf, sizeof(newqf));
8950 (void) sm_strlcpy(newqf, queuename(e, newtype), sizeof(newqf));
8957 rename(tempqf, newqf) < 0)
8965 tempqf, newqf, sm_errstring(save_errno));
8969 tempqf, newqf,
8987 if (xunlink(newqf) < 0)
8992 newqf,