+ DIR *handle;
+#ifdef HAVE_OPENAT
+ int fd = vlc_openat (dirfd (current->handle), entry, O_RDONLY);
+ if (fd != -1)
+ {
+ handle = fdopendir (fd);
+ if (handle == NULL)
+ close (fd);
+ }
+ else
+ handle = NULL;
+#else
+ if (asprintf (&sub->path, "%s/%s", current->path, entry) != -1)
+ handle = vlc_opendir (sub->path);
+ else
+ handle = NULL;
+#endif