summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-02-27 16:52:54 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-02-27 16:52:54 +0000
commit3a4b19e44cf4e74b7a6a58fed36ba3ca9cafc864 (patch)
tree06876cea0f2afbd1cc3015160d103665323c3659 /pp_sys.c
parent26fb8f1f48b6245e35b6b73b7e98bbb26aab4dc6 (diff)
downloadperl-3a4b19e44cf4e74b7a6a58fed36ba3ca9cafc864.tar.gz
remove outdated info about csh and glob(); glob() need not fail
when tainting anymore if using internal globbing p4raw-id: //depot/perl@5286
Diffstat (limited to 'pp_sys.c')
-rw-r--r--pp_sys.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pp_sys.c b/pp_sys.c
index 96260252ad..3429c45d56 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -359,6 +359,9 @@ PP(pp_glob)
ENTER;
#ifndef VMS
+ /* If we're not using an external glob, just let readdir() tainting
+ * do its thing. Otherwise, engage paranoia mode. */
+#if defined(PERL_EXTERNAL_GLOB)
if (PL_tainting) {
/*
* The external globbing program may use things we can't control,
@@ -367,6 +370,7 @@ PP(pp_glob)
TAINT;
taint_proper(PL_no_security, "glob");
}
+#endif /* PERL_EXTERNAL_GLOB */
#endif /* !VMS */
SAVESPTR(PL_last_in_gv); /* We don't want this to be permanent. */