Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 11835
b: refs/heads/master
c: f12ec44
h: refs/heads/master
i:
  11833: 13a0ca4
  11831: 3b2f0f5
v: v3
  • Loading branch information
Miklos Szeredi authored and Linus Torvalds committed Oct 31, 2005
1 parent f526377 commit 508da17
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 15d2bace5ec907530a3d0e0cf4bb1bd29f3ad7b7
refs/heads/master: f12ec44070f6b4d1a3911fcf9917cf8f872a4daf
5 changes: 3 additions & 2 deletions trunk/fs/fuse/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -741,13 +741,14 @@ static struct dentry *fuse_lookup(struct inode *dir, struct dentry *entry,
if (inode && S_ISDIR(inode->i_mode)) {
/* Don't allow creating an alias to a directory */
struct dentry *alias = d_find_alias(inode);
if (alias && !(alias->d_flags & DCACHE_DISCONNECTED)) {
if (alias) {
dput(alias);
iput(inode);
return ERR_PTR(-EIO);
}
}
return d_splice_alias(inode, entry);
d_add(entry, inode);
return NULL;
}

static int fuse_setxattr(struct dentry *entry, const char *name,
Expand Down

0 comments on commit 508da17

Please sign in to comment.