From 4d6b6eb94a3bb53ab47d458a4071ba805281c6a1 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 31 Jan 2001 05:14:31 +0000 Subject: lib/system.c: Fix for pw caching. srv_samr.c: Fix for pw caching. smbd/nttrans.c: Fix to allow trans create to set ACL on open. Jeremy. (This used to be commit c4f810a7588a2faf41f4222dc77678c53ab1dec0) --- source3/rpc_server/srv_samr.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'source3/rpc_server') diff --git a/source3/rpc_server/srv_samr.c b/source3/rpc_server/srv_samr.c index 30a0350f67..857581a471 100644 --- a/source3/rpc_server/srv_samr.c +++ b/source3/rpc_server/srv_samr.c @@ -217,7 +217,7 @@ static BOOL get_passwd_entries(SAM_USER_INFO_21 *pw_buf, if (pw_buf == NULL) return False; if (current_idx == 0) { - setpwent(); + sys_setpwent(); } /* These two cases are inefficient, but should be called very rarely */ @@ -230,7 +230,7 @@ static BOOL get_passwd_entries(SAM_USER_INFO_21 *pw_buf, char *unmap_name; if(!orig_done) { - if ((pwd = getpwent()) == NULL) break; + if ((pwd = sys_getpwent()) == NULL) break; current_idx++; orig_done = True; } @@ -248,8 +248,8 @@ static BOOL get_passwd_entries(SAM_USER_INFO_21 *pw_buf, } } else if (start_idx < current_idx) { /* We are already too far; start over and advance to start_idx */ - endpwent(); - setpwent(); + sys_endpwent(); + sys_setpwent(); current_idx = 0; mapped_idx = 0; orig_done = False; @@ -257,7 +257,7 @@ static BOOL get_passwd_entries(SAM_USER_INFO_21 *pw_buf, char *unmap_name; if(!orig_done) { - if ((pwd = getpwent()) == NULL) break; + if ((pwd = sys_getpwent()) == NULL) break; current_idx++; orig_done = True; } @@ -284,7 +284,7 @@ static BOOL get_passwd_entries(SAM_USER_INFO_21 *pw_buf, /* This does the original UNIX user itself */ if(!orig_done) { - if ((pwd = getpwent()) == NULL) break; + if ((pwd = sys_getpwent()) == NULL) break; /* Don't enumerate winbind users as they are not local */ -- cgit