Subject: | Cleaning up /tmp directory; predictable tmp filenames |
While cleaning up my /tmp directory I discovered left overs from
KinoSearch 0.161 testsuite:
# ls -l kinosearch_lockdir/test-foo
-rw-rw-r-- 1 sand sand 25 Oct 20 05:52 kinosearch_lockdir/test-foo
# ls -lad kinosearch_lockdir
drwxrwxrwx 2 sand sand 4096 Oct 20 05:53 kinosearch_lockdir/
Predictable filenames in /tmp directory have severe security
implications when people run the tests as root. Please use File::Temp
instead (which has the additional benefit of cleaning up after its use;)
Thanks,