From e4e485df64ff22169b005e5b38d8cd04ab4f7943 Mon Sep 17 00:00:00 2001 From: jpandre Date: Fri, 18 Sep 2009 16:22:22 +0000 Subject: [PATCH] Fixed a double inode closing in listxattr() --- src/ntfs-3g.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/ntfs-3g.c b/src/ntfs-3g.c index 5d836428..08e20ab4 100644 --- a/src/ntfs-3g.c +++ b/src/ntfs-3g.c @@ -2219,14 +2219,12 @@ static int ntfs_fuse_listxattr(const char *path, char *list, size_t size) /* file must be readable */ if (!ntfs_allowed_access(&security,path,ni,S_IREAD)) { ret = -EACCES; - ntfs_inode_close(ni); goto exit; } #endif actx = ntfs_attr_get_search_ctx(ni, NULL); if (!actx) { ret = -errno; - ntfs_inode_close(ni); goto exit; }