From a102166268ed566d9bcd9884396add2aef5b9dff Mon Sep 17 00:00:00 2001 From: Nguyễn Thái Ngọc Duy Date: Tue, 14 Sep 2010 11:01:46 +1000 Subject: win32: support .com executables --- win32/process.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'win32') diff --git a/win32/process.c b/win32/process.c index 0936e1c42..13bf81797 100644 --- a/win32/process.c +++ b/win32/process.c @@ -38,7 +38,9 @@ parse_interpreter(const char *cmd) /* don't even try a .exe */ n = strlen(cmd); - if (n >= 4 && !strcasecmp(cmd+n-4, ".exe")) + if (n >= 4 && + (!strcasecmp(cmd+n-4, ".exe") || + !strcasecmp(cmd+n-4, ".com"))) return NULL; fd = open(cmd, O_RDONLY); -- cgit v1.2.3-55-g6feb