filestore: compare dentry->d_type against d_type constant

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
This commit is contained in:
Josh Durgin 2011-06-02 18:17:29 -07:00
parent ea76ea502b
commit 5fc6d92180

View File

@ -3665,7 +3665,7 @@ int FileStore::list_collections(vector<coll_t>& ls)
if (!S_ISDIR(sb.st_mode)) {
continue;
}
} else if (!S_ISDIR(de->d_type << 12)) {
} else if (de->d_type != DT_DIR) {
continue;
}
if (de->d_name[0] == '.' &&