r23390: First part of the patch to make Apple's life easier.
authorJeremy Allison <jra@samba.org>
Fri, 8 Jun 2007 19:52:18 +0000 (19:52 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:23:12 +0000 (12:23 -0500)
commit334c961cc55aafb6b5587ba8ab517b94f1cbe278
tree69855ed37a4ddea1701f6bb1bcbb60088a1586cb
parent19dbef7ca44298dc7e20d7f87f37efcda9db4432
r23390: First part of the patch to make Apple's life easier.
Doing this in two stages to make it very easy to
review. Context switching must look like :

gain_root();
sys_setgroups(ngroups, groups);
become_id(uid, gid);

Re-arrange order so these three calls are always
seen together.

Next will be to turn these into a function.

Jeremy.
(This used to be commit eb537185ee4a3f460709267c843c9303a9bb61b5)
source3/smbd/sec_ctx.c