/* taint.c
*
* Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999,
* 2000, 2001, 2002, by Larry Wall and others
*
* You may distribute under the terms of either the GNU General Public
* License or the Artistic License, as specified in the README file.
*
*/
/*
* "...we will have peace, when you and all your works have perished--and
* the works of your dark master to whom you would deliver us. You are a
* liar, Saruman, and a corrupter of men's hearts." --Theoden
*/
#include "EXTERN.h"
#define PERL_IN_TAINT_C
#include "perl.h"
void
{
char *ug;
#if defined(HAS_SETEUID) && defined(DEBUGGING)
# if Uid_t_size == 1
{
}
# else
{
}
# endif
#endif
if (PL_tainted) {
if (!f)
f = PL_no_security;
ug = " while running setuid";
ug = " while running setgid";
else if (PL_taint_warn)
ug = " while running with -t switch";
else
ug = " while running with -T switch";
if (PL_unsafe || PL_taint_warn) {
if(ckWARN(WARN_TAINT))
}
else {
}
}
}
void
{
char** e;
static char* misc_env[] = {
"IFS", /* most shells' inter-field separators */
"CDPATH", /* ksh dain bramage #1 */
"ENV", /* ksh dain bramage #2 */
"BASH_ENV", /* bash dain bramage -- I guess it's contagious */
};
if (!PL_envgv)
return;
#ifdef VMS
{
int i = 0;
while (1) {
if (i)
break;
}
}
i++;
}
}
#endif /* VMS */
}
}
}
#ifndef VMS
/* tainted $TERM is okay if it contains no metachars */
char *e = t + n_a;
if (t < e && isALNUM(*t))
t++;
t++;
if (t < e) {
}
}
#endif /* !VMS */
for (e = misc_env; *e; e++) {
taint_proper("Insecure $ENV{%s}%s", *e);
}
}
}