Hi,
This is still a race condition since the pid can be guessed easily as well. It's better to use mktemp
-- Larry C$
On Jan 21, 2012, at 02:14 PM, srm <[email protected]> wrote:
This is still a race condition since the pid can be guessed easily as well. It's better to use mktemp
/tmp/debug.XXXXXXXXXX.-- Larry C$
On Jan 21, 2012, at 02:14 PM, srm <[email protected]> wrote:
So, the problem is definitive in the community package of archlinux.
*sigh*. I checked version 1.2.2 from
http://www.draisberghof.de/usb_modeswitch/#download
It doesn't contain the '/tmp/debug' statement.
However: The following version has the debug statement:
https://www.archlinux.org/packages/community/i686/usb_modeswitch/
,grep -n '/tmp/debug' usb_modeswitch.sh
66: echo "symlink-name: $2" >/tmp/debug
A possible quick fix could be to append $$:
66: echo "symlink-name: $2" >/tmp/debug.$$
Greetings
srm
_______________________________________________ Full-Disclosure - We believe in it. Charter: http://lists.grok.org.uk/full-disclosure-charter.html Hosted and sponsored by Secunia - http://secunia.com/
