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/passdb/smbpass.c | 4 ++-- source3/passdb/smbpassgroup.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'source3/passdb') diff --git a/source3/passdb/smbpass.c b/source3/passdb/smbpass.c index 464cec015c..e7adbe6d45 100644 --- a/source3/passdb/smbpass.c +++ b/source3/passdb/smbpass.c @@ -33,7 +33,7 @@ static char s_readbuf[1024]; static void *startsmbfilepwent(BOOL update) { - return startfilepwent(lp_smb_passwd_file(), s_readbuf, sizeof(s_readbuf), + return startfileent(lp_smb_passwd_file(), s_readbuf, sizeof(s_readbuf), &pw_file_lock_depth, update); } @@ -43,7 +43,7 @@ static void *startsmbfilepwent(BOOL update) static void endsmbfilepwent(void *vp) { - endfilepwent(vp, &pw_file_lock_depth); + endfileent(vp, &pw_file_lock_depth); } /************************************************************************* diff --git a/source3/passdb/smbpassgroup.c b/source3/passdb/smbpassgroup.c index 33b848cc76..056f198074 100644 --- a/source3/passdb/smbpassgroup.c +++ b/source3/passdb/smbpassgroup.c @@ -32,7 +32,7 @@ extern int DEBUGLEVEL; static void *startsmbfilegrpent(BOOL update) { static char s_readbuf[1024]; - return startfilepwent(lp_smb_passgrp_file(), s_readbuf, sizeof(s_readbuf), + return startfileent(lp_smb_passgrp_file(), s_readbuf, sizeof(s_readbuf), &grp_file_lock_depth, update); } @@ -42,7 +42,7 @@ static void *startsmbfilegrpent(BOOL update) static void endsmbfilegrpent(void *vp) { - endfilepwent(vp, &grp_file_lock_depth); + endfileent(vp, &grp_file_lock_depth); } /************************************************************************* -- cgit