Up to [local] / src / usr.bin / chpass
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: OPENBSD_3_2
Revision 1.26 / (download) - annotate - [select for diffs], Wed Jul 31 22:08:41 2002 UTC (21 years, 10 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE,
OPENBSD_3_3,
OPENBSD_3_2_BASE,
OPENBSD_3_2
Changes since 1.25: +16 -3 lines
Diff to previous 1.25 (colored)
When I got removed the use of atexit() I missed the fact that edit() calls pw_error() which in turn calls exit(). Now edit() returns its status so the temp file gets cleaned up nicely if the user makes no changes or if an error occurred. Problem noticed by deraadt@