Todd C. Miller Sun, 25 Dec 2016 08:48:06 -0800
Another alternative is to use realpath(3) to resolve the path so it can be used after the chdir(2).
- todd