Fixed apparent protection mode for symbolic links

N2009_11_14_FIXES
jpandre 2007-11-12 13:31:54 +00:00
parent d519250d5b
commit efe1ffec7a
1 changed files with 5 additions and 2 deletions

View File

@ -436,9 +436,12 @@ static int ntfs_fuse_getattr(const char *org_path, struct stat *stbuf)
if (ntfs_fuse_fill_security_context(&security)) {
if (ntfs_get_owner_mode(&security,path,ni,stbuf) < 0)
set_fuse_error(&res);
else
if (S_ISLNK(stbuf->st_mode))
stbuf->st_mode |= (0777 & ~ctx->fmask);
} else {
stbuf->st_uid = ctx->uid;
stbuf->st_gid = ctx->gid;
stbuf->st_uid = ctx->uid;
stbuf->st_gid = ctx->gid;
}
stbuf->st_ino = ni->mft_no;
stbuf->st_atime = ni->last_access_time;