mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 05:27:44 +00:00
fc5341d7ee
Commit cbc5c4b51fcd 'tests: Modernize writekeyfile.c' introduced writeoldkey-t and specified CLEANUP for its afs_XXXXX temporary work directory. However, Perl will not perform CLEANUP if the script is still in that directory at exit. Therefore writeoldkey-t leaves behind an afs_XXXXX temp directory for each run. Modify writeoldkey-t to cd back into 'tests' before exit, so that CLEANUP will work as intended. [mmeffie: save the cwd before cd to the temp dir] Change-Id: Ida723f9bfca05cc96acf189156d13c8607d210f4 Reviewed-on: https://gerrit.openafs.org/15724 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Mark Vitale <mvitale@sinenomine.net> Reviewed-by: Cheyenne Wills <cwills@sinenomine.net> Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>