also its PATH_MAX check has a fencepost error; PATH_MAX includes the trailing NUL, so the maximum symlink link target is PATH_MAX - 1