From 220883485ab0d387ea4a7cf2bab838db7fa895e6 Mon Sep 17 00:00:00 2001 From: jpandre Date: Sun, 17 May 2009 19:59:26 +0000 Subject: [PATCH] Fixed permissions for symlinks when there is no user mapping --- src/ntfs-3g.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ntfs-3g.c b/src/ntfs-3g.c index 1abdf073..f7176427 100644 --- a/src/ntfs-3g.c +++ b/src/ntfs-3g.c @@ -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;