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 9e18ee986..df42590e4 100644
--- a/coreutils/test.c
+++ b/coreutils/test.c
@@ -655,6 +655,21 @@ static int filstat(char *nm, enum token mode)
655 return 0; 655 return 0;
656 } 656 }
657 657
658#if ENABLE_PLATFORM_MINGW32
659 if (mode == FILEX) {
660 char *p;
661
662 if (file_is_executable(nm)) {
663 return 1;
664 }
665 else if ((p=file_is_win32_executable(nm))) {
666 free(p);
667 return 1;
668 }
669 return 0;
670 }
671#endif
672
658 if (stat(nm, &s) != 0) 673 if (stat(nm, &s) != 0)
659 return 0; 674 return 0;
660 if (mode == FILEXIST) 675 if (mode == FILEXIST)