summaryrefslogtreecommitdiff
path: root/source3/groupdb
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-07-13 19:54:40 +0000
committerLuke Leighton <lkcl@samba.org>1999-07-13 19:54:40 +0000
commit0ad513f42c10266bf4ab61089eb212efd05366f6 (patch)
treef0994c930cbf4ef4ef8c5b90c9096b920c0a28a9 /source3/groupdb
parentd2b2dff2e854a73a8b80eb4b23f19a540ce3afe1 (diff)
downloadsamba-0ad513f42c10266bf4ab61089eb212efd05366f6.tar.gz
samba-0ad513f42c10266bf4ab61089eb212efd05366f6.tar.bz2
samba-0ad513f42c10266bf4ab61089eb212efd05366f6.zip
renamed getfilepwent() and endfilepwent() to getfileent() and endfileent()
as they are generic "file line-by-line" reading routines. lines with "#" at the front are ignored (as comments). this code started out as the password file reading code. (This used to be commit ef6df590fdf65a6d94b343998bac3a4d48ae07e0)
Diffstat (limited to 'source3/groupdb')
-rw-r--r--source3/groupdb/aliasfile.c4
-rw-r--r--source3/groupdb/groupfile.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/source3/groupdb/aliasfile.c b/source3/groupdb/aliasfile.c
index 00638f9411..c09d6cc23e 100644
--- a/source3/groupdb/aliasfile.c
+++ b/source3/groupdb/aliasfile.c
@@ -33,7 +33,7 @@ static char s_readbuf[1024];
static void *startalsfilepwent(BOOL update)
{
- return startfilepwent(lp_smb_alias_file(),
+ return startfileent(lp_smb_alias_file(),
s_readbuf, sizeof(s_readbuf),
&al_file_lock_depth, update);
}
@@ -44,7 +44,7 @@ static void *startalsfilepwent(BOOL update)
static void endalsfilepwent(void *vp)
{
- endfilepwent(vp, &al_file_lock_depth);
+ endfileent(vp, &al_file_lock_depth);
}
/*************************************************************************
diff --git a/source3/groupdb/groupfile.c b/source3/groupdb/groupfile.c
index 0e10b801d8..dba190ce56 100644
--- a/source3/groupdb/groupfile.c
+++ b/source3/groupdb/groupfile.c
@@ -36,7 +36,7 @@ extern fstring global_sam_name;
static void *startgrpfilepwent(BOOL update)
{
- return startfilepwent(lp_smb_group_file(),
+ return startfileent(lp_smb_group_file(),
s_readbuf, sizeof(s_readbuf),
&gp_file_lock_depth, update);
}
@@ -47,7 +47,7 @@ static void *startgrpfilepwent(BOOL update)
static void endgrpfilepwent(void *vp)
{
- endfilepwent(vp, &gp_file_lock_depth);
+ endfileent(vp, &gp_file_lock_depth);
}
/*************************************************************************