Searched refs:newqf (Results 1 – 2 of 2) sorted by relevance
/freebsd/lib/libutil/ |
H A D | quotafile.c | 517 struct quotafile *newqf; in quota_convert() local 537 if ((newqf = calloc(1, sizeof(*qf))) == NULL) { in quota_convert() 541 *newqf = *qf; in quota_convert() 542 snprintf(newqf->qfname, MAXPATHLEN + 1, "%s_%d.orig", qf->qfname, in quota_convert() 544 if (rename(qf->qfname, newqf->qfname) < 0) { in quota_convert() 545 free(newqf); in quota_convert() 548 if ((newqf->fd = open(qf->qfname, O_RDWR|O_CREAT|O_TRUNC|O_CLOEXEC, in quota_convert() 553 newqf->wordsize = wordsize; in quota_convert() 560 if (write(newqf->fd, &dqh, sizeof(dqh)) != sizeof(dqh)) { in quota_convert() 566 fchown(newqf->fd, 0, grp ? grp->gr_gid : 0); in quota_convert() [all …]
|
/freebsd/contrib/sendmail/src/ |
H A D | queue.c | 8770 char newqf[MAXPATHLEN]; local 8979 (void) sm_strlcpy(newqf, oldqf, sizeof(newqf)); 8984 (void) sm_strlcpy(newqf, queuename(e, newtype), sizeof(newqf)); 8991 rename(tempqf, newqf) < 0) 8999 tempqf, newqf, sm_errstring(save_errno)); 9003 tempqf, newqf, 9021 if (xunlink(newqf) < 0) 9026 newqf,
|