summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-06-19 15:46:44 +0200
committerVolker Lendecke <vl@samba.org>2008-06-19 15:53:43 +0200
commit3283a5d0def8555b830aae82f61f7fc5060bc8ff (patch)
treeaf523811cab492ed4a5460968ec548e1feabeaa5 /source3
parentff215c4f81abb70a76fd6517c61ba2954c5e3312 (diff)
downloadsamba-3283a5d0def8555b830aae82f61f7fc5060bc8ff.tar.gz
samba-3283a5d0def8555b830aae82f61f7fc5060bc8ff.tar.bz2
samba-3283a5d0def8555b830aae82f61f7fc5060bc8ff.zip
Remove current_user_info reference from vfs_fake_perms.c
(This used to be commit a227181e8d2ed0824a323a3d4b4cfda5e438f8ce)
Diffstat (limited to 'source3')
-rw-r--r--source3/modules/vfs_fake_perms.c10
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;
}