aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/edquota/edquota.c
diff options
context:
space:
mode:
authorJilles Tjoelker <jilles@FreeBSD.org>2013-10-27 21:06:17 +0000
committerJilles Tjoelker <jilles@FreeBSD.org>2013-10-27 21:06:17 +0000
commit1ebe85202b1af5f8e9e76fd6db1e883c8a5155fe (patch)
tree91eb8e92ee4256c744434ab81641f3398e695bac /usr.sbin/edquota/edquota.c
parent0664b03c16e4f27927180a05794327ba1786f21c (diff)
downloadsrc-1ebe85202b1af5f8e9e76fd6db1e883c8a5155fe.tar.gz
src-1ebe85202b1af5f8e9e76fd6db1e883c8a5155fe.zip
Notes
Diffstat (limited to 'usr.sbin/edquota/edquota.c')
-rw-r--r--usr.sbin/edquota/edquota.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/edquota/edquota.c b/usr.sbin/edquota/edquota.c
index a92a3c8f9920..0cd117f19969 100644
--- a/usr.sbin/edquota/edquota.c
+++ b/usr.sbin/edquota/edquota.c
@@ -284,7 +284,7 @@ main(int argc, char *argv[])
freeprivs(protoprivs);
exit(0);
}
- tmpfd = mkstemp(tmpfil);
+ tmpfd = mkostemp(tmpfil, O_CLOEXEC);
fchown(tmpfd, getuid(), getgid());
if (tflag) {
if ((protoprivs = getprivs(0, quotatype, fspath)) != NULL) {