summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1997-10-21 11:57:13 +0000
committerAndrew Tridgell <tridge@samba.org>1997-10-21 11:57:13 +0000
commit51b435abde1e7a30f9d1fa4b8c41b7935b86f90c (patch)
tree0d1341794cb393f2b3083ed38fa6ef6986ec315c /source
parente7ac7935e842738802434edca120bd772ca16fa8 (diff)
downloadsamba-51b435abde1e7a30f9d1fa4b8c41b7935b86f90c.tar.gz
samba-51b435abde1e7a30f9d1fa4b8c41b7935b86f90c.tar.xz
samba-51b435abde1e7a30f9d1fa4b8c41b7935b86f90c.zip
fix the order of become_uid() and become_gid() in become_root(). This
was a harmless bug but left log entries
Diffstat (limited to 'source')
-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 fe2cb5a652d..db1e5e94c3b 100644
--- a/source/smbd/uid.c
+++ b/source/smbd/uid.c
@@ -505,8 +505,8 @@ void become_root(int save_dir)
current_user_saved = current_user;
become_root_depth = 1;
- become_gid(0);
become_uid(0);
+ become_gid(0);
}
/****************************************************************************