Subject: | [PATCH] t/UNIX_test.t fails on Android |
Howdy!
The reason that it fails is because the test is using POSIX::tmpnam(), which on Android returns something like '/tmp/tmp.0.fvbH12534'. Single problem with that: android doesn't actually have a /tmp directory. This is an issue with android's libc[0].
This can be fixed easily by switching to File::Temp, which does the right thing for systems without /tmp.
[0] https://github.com/rapid7/meterpreter/blob/master/source/bionic/libc/stdio/tmpnam.c which uses P_tmpdir, and that's defined as "/tmp" in https://github.com/rapid7/meterpreter/blob/5e24206d510a48db284d5f399a6951cd1b4c754b/source/bionic/libc/include/stdio.h