Remove more uses of "extern struct current_user current_user;".
authorJeremy Allison <jra@samba.org>
Fri, 12 Mar 2010 21:56:51 +0000 (13:56 -0800)
committerJeremy Allison <jra@samba.org>
Fri, 12 Mar 2010 21:56:51 +0000 (13:56 -0800)
commite80ceb1d7355c8c46a2ed90d5721cf367640f4e8
treea1172af1868d93449ac25d68576193a872e0bb50
parent31b0417f7def5af5392088eec8fe6e77074d3da9
Remove more uses of "extern struct current_user current_user;".

Use accessor functions to get to this value. Tidies up much of
the user context code. Volker, please look at the changes in smbd/uid.c
to familiarize yourself with these changes as I think they make the
logic in there cleaner.

Cause smbd/posix_acls.c code to look at current user context, not
stored context on the conn struct - allows correct use of these
function calls under a become_root()/unbecome_root() pair.

Jeremy.
source3/include/proto.h
source3/locking/locking.c
source3/modules/nfs4_acls.c
source3/smbd/close.c
source3/smbd/dir.c
source3/smbd/file_access.c
source3/smbd/lanman.c
source3/smbd/open.c
source3/smbd/posix_acls.c
source3/smbd/uid.c