summaryrefslogtreecommitdiffstats
path: root/usr.sbin/edquota/edquota.c
diff options
context:
space:
mode:
authorjlemon <jlemon@FreeBSD.org>1997-08-19 20:45:45 +0000
committerjlemon <jlemon@FreeBSD.org>1997-08-19 20:45:45 +0000
commitd22d20bf7268a6e5600cbf877c39ce24745bb6a6 (patch)
tree01b7d3f6b0231e1d4f9d5800ac8c736f2cbd6c2b /usr.sbin/edquota/edquota.c
parent276d42acd0a55ebdb8e4458e142f40402939e4ba (diff)
downloadFreeBSD-src-d22d20bf7268a6e5600cbf877c39ce24745bb6a6.zip
FreeBSD-src-d22d20bf7268a6e5600cbf877c39ce24745bb6a6.tar.gz
Remove temporary file on exit.
PR: 4010 Submitted by: "Anatoly A. Orehovsky" <tolik@www.tomsk.su>
Diffstat (limited to 'usr.sbin/edquota/edquota.c')
-rw-r--r--usr.sbin/edquota/edquota.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/edquota/edquota.c b/usr.sbin/edquota/edquota.c
index 8918d45..503559f 100644
--- a/usr.sbin/edquota/edquota.c
+++ b/usr.sbin/edquota/edquota.c
@@ -161,6 +161,8 @@ main(argc, argv)
if (editit(tmpfil) && readtimes(protoprivs, tmpfil))
putprivs(0, quotatype, protoprivs);
freeprivs(protoprivs);
+ close(tmpfd);
+ unlink(tmpfil);
exit(0);
}
for ( ; argc > 0; argc--, argv++) {
OpenPOWER on IntegriCloud