1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-24 02:04:21 +03:00

Remove current_user_info reference from vfs_fake_perms.c

(This used to be commit a227181e8d2ed0824a323a3d4b4cfda5e438f8ce)
This commit is contained in:
Volker Lendecke 2008-06-19 15:46:44 +02:00
parent ff215c4f81
commit 3283a5d0de

View File

@ -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;
}