[vlc-devel] [PATCH 6/8] access/directory: remove recursive code

Rémi Denis-Courmont remi at remlab.net
Thu May 7 14:01:02 CEST 2015


Le 2015-05-07 13:10, Thomas Guillem a écrit :
> -#ifdef HAVE_OPENAT
> -/* Detect directories that recurse into themselves. */
> -static bool has_inode_loop (const directory *dir, dev_t dev, ino_t 
> inode)
> -{
> -    while (dir != NULL)
> -    {
> -        if ((dir->device == dev) && (dir->inode == inode))
> -            return true;
> -        dir = dir->parent;
> -    }
> -    return false;
> -}
> -#endif

I can't really see where the inode loop checks is after this patch.

-- 
Rémi Denis-Courmont
Remlab T:mi
http://www.remlab.net/



More information about the vlc-devel mailing list