diff options
author | Volker Lendecke <vl@samba.org> | 2008-06-15 13:41:16 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-06-15 13:41:16 +0200 |
commit | b6c125e4e0201498e67405fe9065415d6f45abef (patch) | |
tree | 84670805e1d6ac8ba4ee1509d93caf2ec70acf71 /source3 | |
parent | d49de28f1154140f63670cfbf5093cdee6f16eb0 (diff) | |
download | samba-b6c125e4e0201498e67405fe9065415d6f45abef.tar.gz samba-b6c125e4e0201498e67405fe9065415d6f45abef.tar.bz2 samba-b6c125e4e0201498e67405fe9065415d6f45abef.zip |
Remove the current_user references from open.c
current_user_info was "only" used in a debug msg, and current_user.ut.uid is
also available via conn->server_info
(This used to be commit d0386914ff0f7b0f1edc3302fdc6a25f211712fa)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/open.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 9b847ec877..5a1af42638 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -22,8 +22,6 @@ #include "includes.h" extern const struct generic_mapping file_generic_mapping; -extern struct current_user current_user; -extern userdom_struct current_user_info; extern bool global_client_failed_oplock_break; struct deferred_open_record { @@ -400,8 +398,7 @@ static NTSTATUS open_file(files_struct *fsp, fsp->wcp = NULL; /* Write cache pointer. */ DEBUG(2,("%s opened file %s read=%s write=%s (numopen=%d)\n", - *current_user_info.smb_name - ? current_user_info.smb_name : conn->server_info->unix_name, + conn->server_info->unix_name, fsp->fsp_name, BOOLSTR(fsp->can_read), BOOLSTR(fsp->can_write), conn->num_files_open + 1)); @@ -1850,7 +1847,8 @@ NTSTATUS open_file_ntcreate(connection_struct *conn, new_file_created = True; } - set_share_mode(lck, fsp, current_user.ut.uid, 0, fsp->oplock_type, new_file_created); + set_share_mode(lck, fsp, conn->server_info->uid, 0, fsp->oplock_type, + new_file_created); /* Handle strange delete on close create semantics. */ if ((create_options & FILE_DELETE_ON_CLOSE) @@ -2249,7 +2247,7 @@ NTSTATUS open_directory(connection_struct *conn, return status; } - set_share_mode(lck, fsp, current_user.ut.uid, 0, NO_OPLOCK, True); + set_share_mode(lck, fsp, conn->server_info->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. */ |