Subject: | Cleaning up /tmp directory; predictable tmp filenames |
Running 'make test' leaves these files behind:
-rw-rw-r-- 1 sand sand 25902 2007-10-25 06:08:47 tux.pl
-rw-rw-r-- 1 sand sand 20470 2007-10-25 06:08:48 tux.tcl
-rw-rw-r-- 1 sand sand 0 2007-10-25 06:08:48 tux.png
-rw-rw-r-- 1 sand sand 23303 2007-10-25 06:08:48 tux.pm
Please do not use predictable filenames in /tmp because they have nasty
security implication when people run the tests as root. Use File::Temp
instead. And when you use CLEANUP=>1 with File::Temp the files will even
be removed after use.
Thanks