DIR *handle;
#ifdef HAVE_FDOPENDIR
- /* TODO: ToLocale */
- int fd = openat (dirfd (current->handle), entry, O_RDONLY);
+ int fd = vlc_openat (dirfd (current->handle), entry, O_RDONLY);
if (fd != -1)
{
handle = fdopendir (fd);
else if (*end == '/' && end > path)
{
char *name = decode_URI_duplicate (end - 1);
- if (name != NULL) /* TODO: ToLocale(), FD_CLOEXEC */
+ if (name != NULL)
{
name[0] = '.';
- fd = openat (oldfd, name, O_RDONLY | O_NONBLOCK);
+ fd = vlc_openat (oldfd, name, O_RDONLY | O_NONBLOCK);
free (name);
}
}