From d22d20bf7268a6e5600cbf877c39ce24745bb6a6 Mon Sep 17 00:00:00 2001 From: jlemon Date: Tue, 19 Aug 1997 20:45:45 +0000 Subject: Remove temporary file on exit. PR: 4010 Submitted by: "Anatoly A. Orehovsky" --- usr.sbin/edquota/edquota.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'usr.sbin/edquota') 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++) { -- cgit v1.1