summaryrefslogtreecommitdiffstats
path: root/source/lib/replace.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-02-03 00:49:24 +0000
committerLuke Leighton <lkcl@samba.org>1999-02-03 00:49:24 +0000
commitf7dfa55a2e191ae780d399026bce48f68cda4bf0 (patch)
treef04fffe622fc5a4b45c5df0057e8d4af0e21863b /source/lib/replace.c
parentf082f07e764c04b75b6880f852b80faec86f1b1c (diff)
downloadsamba-f7dfa55a2e191ae780d399026bce48f68cda4bf0.tar.gz
samba-f7dfa55a2e191ae780d399026bce48f68cda4bf0.tar.xz
samba-f7dfa55a2e191ae780d399026bce48f68cda4bf0.zip
cache unix groups so that two-level getgrent calls don't occur.
Diffstat (limited to 'source/lib/replace.c')
-rw-r--r--source/lib/replace.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/lib/replace.c b/source/lib/replace.c
index a768e9ce47a..c6a42594177 100644
--- a/source/lib/replace.c
+++ b/source/lib/replace.c
@@ -168,6 +168,7 @@ Corrections by richard.kettlewell@kewill.com
struct group *g;
char *gr;
+ setgrent();
grouplst[0] = id;
i = 1;
while (i < NGROUPS_MAX &&