summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-02-03 22:41:55 +0000
committerNicholas Clark <nick@ccl4.org>2006-02-03 22:41:55 +0000
commit97bd566409a94bf7961734af3ac8131276ce086b (patch)
tree01580ea7b8688c46c72765484922bfbe9d56d361 /toke.c
parenta8e48fe22d03f17d66e4765e2eef8807740ca1fc (diff)
downloadperl-97bd566409a94bf7961734af3ac8131276ce086b.tar.gz
And as we've now got to the point where all calls to Perl_moreswitches
have -1 as the second argument, we can remove the second argument, which gets us back to where we started, only with the elimination of a per-thread variable. p4raw-id: //depot/perl@27075
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/toke.c b/toke.c
index df89130abe..8f01720491 100644
--- a/toke.c
+++ b/toke.c
@@ -3008,12 +3008,7 @@ Perl_yylex(pTHX)
Perl_croak(aTHX_ "Too late for \"-%.*s\" option",
(int)(d - m), m);
}
- /* Given that these switches are within the script,
- then it is not unsafe to allow them even within
- a suidperl fd script. Hence pass in the
- suidscript flag as -1, irrespective of what we
- really are. */
- d = moreswitches(d, -1);
+ d = moreswitches(d);
} while (d);
if (PL_doswitches && !switches_done) {
int argc = PL_origargc;