From daf8003511acbb7e561ba915a811c07df75449af Mon Sep 17 00:00:00 2001 From: jpandre Date: Tue, 6 Nov 2007 18:42:51 +0000 Subject: [PATCH] Fixed checking access to target directory in creating a hard link --- src/ntfs-3g.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ntfs-3g.c b/src/ntfs-3g.c index 7b160e1e..7a99cab2 100644 --- a/src/ntfs-3g.c +++ b/src/ntfs-3g.c @@ -1195,7 +1195,7 @@ static int ntfs_fuse_ln(const char *old_path, const char *new_path, int mtime) /* JPA make sure the parent directory is writeable */ if (ntfs_fuse_fill_security_context(&security) - && !ntfs_allowed_access(&security,path,dir_ni,S_IWRITE)) + && !ntfs_allowed_access(&security,path,dir_ni,S_IWRITE + S_IEXEC)) res = -EACCES; else {