diff options
author | Luke Leighton <lkcl@samba.org> | 1999-07-13 19:54:40 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1999-07-13 19:54:40 +0000 |
commit | 0ad513f42c10266bf4ab61089eb212efd05366f6 (patch) | |
tree | f0994c930cbf4ef4ef8c5b90c9096b920c0a28a9 /source3/passdb | |
parent | d2b2dff2e854a73a8b80eb4b23f19a540ce3afe1 (diff) | |
download | samba-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/passdb')
-rw-r--r-- | source3/passdb/smbpass.c | 4 | ||||
-rw-r--r-- | source3/passdb/smbpassgroup.c | 4 |
2 files changed, 4 insertions, 4 deletions
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); } /************************************************************************* |