Remove temporary file on exit.

PR:		4010
Submitted by:	"Anatoly A. Orehovsky" <tolik@www.tomsk.su>
This commit is contained in:
Jonathan Lemon 1997-08-19 20:45:45 +00:00
parent af041bf3fd
commit 026df10061
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=28431

View File

@ -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++) {