The issue has now been fixed in the expect CVS repository, using one of my patches, slightly edited. This commit of retoglob.c fixes it:
revision 5.6 date: 2010/08/27 22:24:33; author: hobbs; state: Exp; lines: +38 -0 * retoglob.c: Fail if the generated glob contains more than two asterisks. Fixes [Expect SF Bug 3010684] (cederqvist) For your backporting convenience, I attach the patch to this mail. The ChangeLog entry is: 2010-08-27 Jeff Hobbs <je...@activestate.com> * retoglob.c: Fail if the generated glob contains more than two asterisks. Fixes [Expect SF Bug 3010684] (cederqvist) /ceder
two-asterisks.patch
Description: Binary data