aboutsummaryrefslogtreecommitdiff
path: root/coreutils/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/test.c')
-rw-r--r--coreutils/test.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/coreutils/test.c b/coreutils/test.c
index 288f66508..67fdfde4f 100644
--- a/coreutils/test.c
+++ b/coreutils/test.c
@@ -657,6 +657,21 @@ static int filstat(char *nm, enum token mode)
657 return 0; 657 return 0;
658 } 658 }
659 659
660#if ENABLE_PLATFORM_MINGW32
661 if (mode == FILEX) {
662 char *p;
663
664 if (file_is_executable(nm)) {
665 return 1;
666 }
667 else if ((p=file_is_win32_executable(nm))) {
668 free(p);
669 return 1;
670 }
671 return 0;
672 }
673#endif
674
660 if (stat(nm, &s) != 0) 675 if (stat(nm, &s) != 0)
661 return 0; 676 return 0;
662 if (mode == FILEXIST) 677 if (mode == FILEXIST)