David Weinehall reported in Debian bug #258517 that OpenSSH uses the XSI extension 'test -a', and some /bin/sh implementations (mostly of the kind designed for use in small systems) don't like this. The fixes are easy and in line with other shell code in OpenSSH; I'll attach the patch in a moment.
Created attachment 682 [details] use && rather than test -a
Applied, thanks.