2 * "...we will have peace, when you and all your works have perished--and
3 * the works of your dark master to whom you would deliver us. You are a
4 * liar, Saruman, and a corrupter of men's hearts." --Theoden
17 DEBUG_u(PerlIO_printf(PerlIO_stderr(),
18 "%s %d %d %d\n", s, tainted, uid, euid));
22 ug = " while running setuid";
24 ug = " while running setgid";
26 ug = " while running with -T switch";
42 char name[10 + TYPE_DIGITS(int)] = "DCL$PATH";
46 (void)sprintf(name,"DCL$PATH;%d", i);
47 svp = hv_fetch(GvHVn(envgv), name, strlen(name), FALSE);
48 if (!svp || *svp == &sv_undef)
50 if (SvTAINTED(*svp)) {
52 taint_proper("Insecure %s%s", "$ENV{DCL$PATH}");
54 if ((mg = mg_find(*svp, 'e')) && MgTAINTEDDIR(mg)) {
56 taint_proper("Insecure directory in %s%s", "$ENV{DCL$PATH}");
62 svp = hv_fetch(GvHVn(envgv),"PATH",4,FALSE);
64 if (SvTAINTED(*svp)) {
66 taint_proper("Insecure %s%s", "$ENV{PATH}");
68 if ((mg = mg_find(*svp, 'e')) && MgTAINTEDDIR(mg)) {
70 taint_proper("Insecure directory in %s%s", "$ENV{PATH}");
74 svp = hv_fetch(GvHVn(envgv),"IFS",3,FALSE);
75 if (svp && *svp != &sv_undef && SvTAINTED(*svp)) {
77 taint_proper("Insecure %s%s", "$ENV{IFS}");