Skip to content

Commit

Permalink
root directory has no xattrs
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejs committed Aug 21, 2009
1 parent be7befa commit b44eb58
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@ static int gridfs_listxattr(const char* path, char* list, size_t size)

static int gridfs_getxattr(const char* path, const char* name, char* value, size_t size)
{
if(strcmp(path, "/") == 0) {
return -ENOATTR;
}

path = fuse_to_mongo_path(path);
const char* attr_name;

Expand Down

0 comments on commit b44eb58

Please sign in to comment.