mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-11-23 10:04:00 +08:00
Fixed permissions for symlinks when there is no user mapping
This commit is contained in:
parent
c453008681
commit
220883485a
@ -614,13 +614,12 @@ static int ntfs_fuse_getattr(const char *org_path, struct stat *stbuf)
|
||||
if (withusermapping) {
|
||||
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;
|
||||
} else {
|
||||
stbuf->st_uid = ctx->uid;
|
||||
stbuf->st_gid = ctx->gid;
|
||||
}
|
||||
if (S_ISLNK(stbuf->st_mode))
|
||||
stbuf->st_mode |= 0777;
|
||||
stbuf->st_ino = ni->mft_no;
|
||||
stbuf->st_atime = ni->last_access_time;
|
||||
stbuf->st_ctime = ni->last_mft_change_time;
|
||||
|
Loading…
Reference in New Issue
Block a user