CHROOT_OUT;
if (fd_cwd == -1) {
- reply_with_perror ("readlinklist: %s", path);
+ reply_with_perror ("open: %s", path);
return NULL;
}
r = readlinkat (fd_cwd, names[i], link, sizeof link);
if (r >= PATH_MAX) {
reply_with_perror ("readlinkat: returned link is too long");
- free_strings (ret);
close (fd_cwd);
return NULL;
}