summaryrefslogtreecommitdiff
path: root/source3/smbd/uid.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-05-07 19:04:14 +0000
committerJeremy Allison <jra@samba.org>1998-05-07 19:04:14 +0000
commit01df1ed95f880a671ead7bc92b3bcff01a2e2dc0 (patch)
tree7cb5a01b50e86b2e7129aa67e63ef47a24b72a04 /source3/smbd/uid.c
parentd8d9f7723337c267a8740750fe19a6387cfbb1f6 (diff)
downloadsamba-01df1ed95f880a671ead7bc92b3bcff01a2e2dc0.tar.gz
samba-01df1ed95f880a671ead7bc92b3bcff01a2e2dc0.tar.bz2
samba-01df1ed95f880a671ead7bc92b3bcff01a2e2dc0.zip
This should (hopefully :-) be the final fix for the %U %G substitution
problem.... smbpass.c: Removed Luke's dire warning - as some of the functions in here *need* to be called externally :-). Jeremy. (This used to be commit 1fd8d12ca414066acec71b33eb8a13e16c2acd3a)
Diffstat (limited to 'source3/smbd/uid.c')
-rw-r--r--source3/smbd/uid.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/source3/smbd/uid.c b/source3/smbd/uid.c
index c01fa1b052..a8e340e46f 100644
--- a/source3/smbd/uid.c
+++ b/source3/smbd/uid.c
@@ -28,7 +28,6 @@ static int initial_gid;
/* what user is current? */
struct current_user current_user;
-extern pstring sesssetup_user;
pstring OriginalDir;
@@ -278,11 +277,6 @@ BOOL become_user(connection_struct *conn, int cnum, uint16 vuid)
current_user.cnum = cnum;
current_user.vuid = vuid;
- /* Ensure sesssetup_user is set correctly if we are using
- user security. */
- if(vuser != NULL)
- pstrcpy( sesssetup_user, vuser->requested_name);
-
DEBUG(5,("become_user uid=(%d,%d) gid=(%d,%d)\n",
getuid(),geteuid(),getgid(),getegid()));