diff options
author | Volker Lendecke <vl@samba.org> | 2008-06-19 16:54:12 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-06-19 18:51:37 +0200 |
commit | 40f5eab5eb515937e1b23cf6762b77c194d29b9d (patch) | |
tree | 72ed1a0ab8ef362f84664f0d5c95c7944199c8e0 /source3/smbd/open.c | |
parent | e40b6e296a91f87e0a238323fe1dbf76149487e0 (diff) | |
download | samba-40f5eab5eb515937e1b23cf6762b77c194d29b9d.tar.gz samba-40f5eab5eb515937e1b23cf6762b77c194d29b9d.tar.bz2 samba-40f5eab5eb515937e1b23cf6762b77c194d29b9d.zip |
Wrap the unix token info in a unix_user_token in auth_serversupplied_info
No functional change, this is a preparation for more current_user ref removal
(This used to be commit dcaedf345e62ab74ea87f0a3fa1e3199c75c5445)
Diffstat (limited to 'source3/smbd/open.c')
-rw-r--r-- | source3/smbd/open.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 5a1af42638..3cec80c6df 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -1847,8 +1847,8 @@ NTSTATUS open_file_ntcreate(connection_struct *conn, new_file_created = True; } - set_share_mode(lck, fsp, conn->server_info->uid, 0, fsp->oplock_type, - new_file_created); + set_share_mode(lck, fsp, conn->server_info->utok.uid, 0, + fsp->oplock_type, new_file_created); /* Handle strange delete on close create semantics. */ if ((create_options & FILE_DELETE_ON_CLOSE) @@ -2247,7 +2247,8 @@ NTSTATUS open_directory(connection_struct *conn, return status; } - set_share_mode(lck, fsp, conn->server_info->uid, 0, NO_OPLOCK, True); + set_share_mode(lck, fsp, conn->server_info->utok.uid, 0, NO_OPLOCK, + True); /* For directories the delete on close bit at open time seems always to be honored on close... See test 19 in Samba4 BASE-DELETE. */ |