summaryrefslogtreecommitdiff
path: root/cygwin
diff options
context:
space:
mode:
Diffstat (limited to 'cygwin')
-rw-r--r--cygwin/cygwin.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cygwin/cygwin.c b/cygwin/cygwin.c
index 6a717130bc..0b4dcc8ef7 100644
--- a/cygwin/cygwin.c
+++ b/cygwin/cygwin.c
@@ -147,6 +147,9 @@ XS(Cygwin_cwd)
if((cwd = getcwd(NULL, -1))) {
ST(0) = sv_2mortal(newSVpv(cwd, 0));
safesysfree(cwd);
+#ifndef INCOMPLETE_TAINTS
+ SvTAINTED_on(ST(0));
+#endif
XSRETURN(1);
}
XSRETURN_UNDEF;