Take the taint brush to the getcwds.
[p5sagit/p5-mst-13.2.git] / djgpp / djgpp.c
index f235421..73573c3 100644 (file)
@@ -367,6 +367,9 @@ XS(dos_GetCwd)
         ST(0)=sv_newmortal ();
         if (getcwd (tmp,PATH_MAX+1)!=NULL)
             sv_setpv ((SV*)ST(0),tmp);
+#ifndef INCOMPLETE_TAINTS
+       SvTAINTED_on(ST(0));
+#endif
     }
     XSRETURN (1);
 }