This bug is actually noted in the 6.4.0 release notes here:
https://www.qnx.com/developers/articles/rel_3101_1.html Where it says:
---
chdir(), chroot()
A bug in chdir() makes chroot() not work properly. (Ref# 21089)
---
in the section "Known issues: Libraries and header files".
This issue has since been resolved in Neutrino 6.4.1.
If you need a fix for this issue in 6.4.0 or 6.3.2, please contact support and mention the reference number 21089 and 62787.
NOTE:
This entry has been validated against the SDP version listed above. Use
caution when considering this advice for any other SDP version. For
supported releases, please reach out toQNX Technical Support if you have any questions/concerns.