summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Sadinoff <sadinoff@olf.com>1997-05-09 12:33:18 -0400
committerChip Salzenberg <chip@atlantic.net>1997-05-16 10:15:00 +1200
commit7596f71a28f72f9e3abd6d3962d29a7752cd9303 (patch)
tree0c3e933b259f6dfe101c235aafab69e34cf86fec
parent7b05b7e32c22894360c5332cd30232bdea49f5a8 (diff)
downloadperl-7596f71a28f72f9e3abd6d3962d29a7752cd9303.tar.gz
Don't require executable bit on perl -S if DOSISH
update to previous bugreport regarding the -x filetest and running perl -S filename. I misstated the patch necessary for turning off the executability check for the -S option. It should be: p5p-msgid: 337351CE.79B28DE3@olf.com
-rw-r--r--perl.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/perl.c b/perl.c
index 8af7172d16..e2ceb9ebc3 100644
--- a/perl.c
+++ b/perl.c
@@ -1706,7 +1706,11 @@ SV *sv;
if (retval < 0)
continue;
if (S_ISREG(statbuf.st_mode)
- && cando(S_IRUSR,TRUE,&statbuf) && cando(S_IXUSR,TRUE,&statbuf)) {
+ && cando(S_IRUSR,TRUE,&statbuf)
+#ifndef DOSISH
+ && cando(S_IXUSR,TRUE,&statbuf)
+#endif
+ ) {
xfound = tokenbuf; /* bingo! */
break;
}