Fixed checking access to target directory in creating a hard link

N2009_11_14_FIXES
jpandre 2007-11-06 18:42:51 +00:00
parent afb21cdd92
commit daf8003511
1 changed files with 1 additions and 1 deletions

View File

@ -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 {