summaryrefslogtreecommitdiffstats
path: root/source/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
commit8e90e1ef276c4cc362e32985c2845fc4c5108273 (patch)
tree80ec012cfd202438d7b3f8169d731ae3d06fe1d7 /source/smbd/uid.c
parent1b056ddd9a787de902639b2ed85fe3953a750562 (diff)
downloadsamba-8e90e1ef276c4cc362e32985c2845fc4c5108273.tar.gz
samba-8e90e1ef276c4cc362e32985c2845fc4c5108273.tar.xz
samba-8e90e1ef276c4cc362e32985c2845fc4c5108273.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()
Diffstat (limited to 'source/smbd/uid.c')
-rw-r--r--source/smbd/uid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/smbd/uid.c b/source/smbd/uid.c
index 42ade7e4da1..28bf4b421ac 100644
--- a/source/smbd/uid.c
+++ b/source/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);
}
/****************************************************************************