From 0ad513f42c10266bf4ab61089eb212efd05366f6 Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Tue, 13 Jul 1999 19:54:40 +0000 Subject: 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) --- source3/groupdb/aliasfile.c | 4 ++-- source3/groupdb/groupfile.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'source3/groupdb') 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); } /************************************************************************* -- cgit