[pacman-dev] [PATCH] Check return value of chdir and getwd