Fix bugs deleting temporary files and their containing directory.
authorJohn Darrington <john@darrington.wattle.id.au>
Fri, 1 Jul 2011 16:20:42 +0000 (18:20 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Fri, 1 Jul 2011 16:20:42 +0000 (18:20 +0200)
commit228b83840e3f053aecfa9feac395fb6855adf044
tree63bf490c2fc29085658cd77bd4cc1c5148372526
parent6905ebaf7790cf797d424b13959c3f96e9c515aa
Fix bugs deleting temporary files and their containing directory.

The clean_temp module provided by gnulib doesn't cleanup on program
exit.  We must do that ourselves.  Secondly, the close_temp_file function
was supposed to remove the file, but didn't do that.  Thirdly, files
were not being registered with the clean_temp module on creation.
This change fixes these problems.
src/libpspp/ext-array.c
src/libpspp/temp-file.c
tests/automake.mk