NB. -DIAMSUID is only set to compile sperl.o.
p4raw-id: //depot/perl@23906
void
PerlIO_debug(const char *fmt, ...)
{
-#ifdef IAMSUID
static int dbg = 0;
va_list ap;
dSYS;
va_start(ap, fmt);
- if (!dbg) {
+ if (!dbg && !PL_tainting && PL_uid == PL_euid && PL_gid == PL_egid) {
char *s = PerlEnv_getenv("PERLIO_DEBUG");
if (s && *s)
dbg = PerlLIO_open3(s, O_WRONLY | O_CREAT | O_APPEND, 0666);
#endif
}
va_end(ap);
-#endif /* IAMSUID */
}
/*--------------------------------------------------------------------------------------*/