summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2015-06-23 10:21:45 +1000
committerTony Cook <tony@develop-help.com>2015-07-07 16:07:51 +1000
commit201e9e2aa1088e65b7160f94706673641f1e018a (patch)
tree35bbbaa8b78ce67dfbaa32f342a926901cc4bca6 /pp_sys.c
parentba707cdc782d882662421af06658ff4afdf31003 (diff)
downloadperl-201e9e2aa1088e65b7160f94706673641f1e018a.tar.gz
[perl #125373] set $! in chdir() if env not set, clarify docs
Diffstat (limited to 'pp_sys.c')
-rw-r--r--pp_sys.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pp_sys.c b/pp_sys.c
index da25f0f41e..b0f7798007 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -3628,6 +3628,7 @@ PP(pp_chdir)
}
else {
PUSHi(0);
+ SETERRNO(EINVAL, LIB_INVARG);
TAINT_PROPER("chdir");
RETURN;
}