summaryrefslogtreecommitdiff
path: root/source3/smbd/uid.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1997-10-21 11:54:57 +0000
committerAndrew Tridgell <tridge@samba.org>1997-10-21 11:54:57 +0000
commit0aa3935917e325afcb72fdab7a95e99bcfb074cc (patch)
treed4a9b73f9cbeb990554993449d662e626bef76c4 /source3/smbd/uid.c
parent3700907168083b2271855101805796568dd600d9 (diff)
downloadsamba-0aa3935917e325afcb72fdab7a95e99bcfb074cc.tar.gz
samba-0aa3935917e325afcb72fdab7a95e99bcfb074cc.tar.bz2
samba-0aa3935917e325afcb72fdab7a95e99bcfb074cc.zip
fix the order of become_uid() and become_gid() in become_root(). This
was a harmless bug but left log entries code cleanup in reply_lanman2() (This used to be commit 8e90e1ef276c4cc362e32985c2845fc4c5108273)
Diffstat (limited to 'source3/smbd/uid.c')
-rw-r--r--source3/smbd/uid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/uid.c b/source3/smbd/uid.c
index 42ade7e4da..28bf4b421a 100644
--- a/source3/smbd/uid.c
+++ b/source3/smbd/uid.c
@@ -505,8 +505,8 @@ void become_root(BOOL save_dir)
current_user_saved = current_user;
become_root_depth = 1;
- become_gid(0);
become_uid(0);
+ become_gid(0);
}
/****************************************************************************