jilles b78a69b708 sh: Fix bss-based buffer overflow in . builtin.
If the length of a directory in PATH together with the given filename
exceeded FILENAME_MAX (which may happen even for pathnames that work), a
static buffer was overflown.

The static buffer is unnecessary, we can use the stalloc() stack.

Obtained from:	NetBSD
MFC after:	1 week
2011-05-22 12:12:28 +00:00
..
2010-12-21 22:47:34 +00:00
2011-03-07 07:31:15 +00:00
2010-12-21 22:47:34 +00:00
2009-12-24 18:41:14 +00:00
2010-06-02 19:16:58 +00:00
2009-12-24 18:41:14 +00:00