diff options
Diffstat (limited to 'source3/modules')
-rw-r--r-- | source3/modules/vfs_fake_perms.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/source3/modules/vfs_fake_perms.c b/source3/modules/vfs_fake_perms.c index ddad0008a7..ef0a2c3d9e 100644 --- a/source3/modules/vfs_fake_perms.c +++ b/source3/modules/vfs_fake_perms.c @@ -23,8 +23,6 @@ #include "includes.h" -extern struct current_user current_user; - #undef DBGC_CLASS #define DBGC_CLASS DBGC_VFS @@ -39,8 +37,8 @@ static int fake_perms_stat(vfs_handle_struct *handle, const char *fname, SMB_STR } else { sbuf->st_mode = S_IRWXU; } - sbuf->st_uid = current_user.ut.uid; - sbuf->st_gid = current_user.ut.gid; + sbuf->st_uid = handle->conn->server_info->uid; + sbuf->st_gid = handle->conn->server_info->gid; } return ret; @@ -57,8 +55,8 @@ static int fake_perms_fstat(vfs_handle_struct *handle, files_struct *fsp, SMB_ST } else { sbuf->st_mode = S_IRWXU; } - sbuf->st_uid = current_user.ut.uid; - sbuf->st_gid = current_user.ut.gid; + sbuf->st_uid = handle->conn->server_info->uid; + sbuf->st_gid = handle->conn->server_info->gid; } return ret; } |