Fixed apparent protection mode for symbolic links
parent
d519250d5b
commit
efe1ffec7a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue