Changeset 24c38138a74528a6dd7643dd245c9e5af16330bd

Show
Ignore:
Timestamp:
09/03/08 13:18:37 (9 months ago)
Author:
Rafaël Carré <funman@videolan.org>
git-committer:
Rafaël Carré <funman@videolan.org> 1205065117 +0100
git-parent:

[3def7a126ba8568ee7dcc8f9d2f1ce01f2603935]

git-author:
Rafaël Carré <funman@videolan.org> 1205063993 +0100
Message:

Fix directory detection with broken filesystems on Linux

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/access/directory.c

    r99fab90 r24c3813  
    147147    access_t *p_access = (access_t*)p_this; 
    148148 
     149    if( !p_access->psz_path ) 
     150        return VLC_EGENERIC; 
     151 
     152    struct stat st; 
     153    if( !stat( p_access->psz_path, &st ) && !S_ISDIR( st.st_mode ) ) 
     154        return VLC_EGENERIC; 
     155 
    149156    DIR *handle = OpenDir (p_this, p_access->psz_path); 
    150157    if (handle == NULL)