Remove temporary file on exit.
PR: 4010 Submitted by: "Anatoly A. Orehovsky" <tolik@www.tomsk.su>
This commit is contained in:
parent
af041bf3fd
commit
026df10061
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=28431
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user