Deleted Added
full compact
28c28
< * $FreeBSD: head/lib/libutil/quotafile.c 229403 2012-01-03 18:51:58Z ed $
---
> * $FreeBSD: head/lib/libutil/quotafile.c 255007 2013-08-28 21:10:37Z jilles $
140c140
< if ((qf->fd = open(qf->qfname, qf->accmode)) < 0 &&
---
> if ((qf->fd = open(qf->qfname, qf->accmode|O_CLOEXEC)) < 0 &&
171c171,172
< if ((qf->fd = open(qf->qfname, O_RDWR|O_CREAT|O_TRUNC, 0)) < 0)
---
> if ((qf->fd = open(qf->qfname, O_RDWR|O_CREAT|O_TRUNC|O_CLOEXEC, 0)) <
> 0)
537c538,539
< if ((newqf->fd = open(qf->qfname, O_RDWR|O_CREAT|O_TRUNC, 0)) < 0) {
---
> if ((newqf->fd = open(qf->qfname, O_RDWR|O_CREAT|O_TRUNC|O_CLOEXEC,
> 0)) < 0) {