Commit 09049343 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

file: rewind before read

parent e5afe49a
......@@ -145,7 +145,11 @@ int Open( vlc_object_t *p_this )
int oldfd = strtol (path, &end, 10);
if (*end == '\0')
{
fd = dup (oldfd);
if (fd != -1)
lseek (fd, 0, SEEK_SET);
}
#ifdef HAVE_FDOPENDIR
else if (*end == '/' && end > path)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment