summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-03-01 05:21:19 +0000
committerJeremy Allison <jra@samba.org>2001-03-01 05:21:19 +0000
commit5161c61bc7d2e3c8ee370bdedd755580445a2107 (patch)
tree7253d8ebfddb2edccb4c25ea49472916b2b2f790
parent865e8a3910ebab04ec83c33280bbbbdb00e33518 (diff)
downloadsamba-5161c61bc7d2e3c8ee370bdedd755580445a2107.tar.gz
samba-5161c61bc7d2e3c8ee370bdedd755580445a2107.tar.bz2
samba-5161c61bc7d2e3c8ee370bdedd755580445a2107.zip
Fixed a couple of getpwXX calls that were not going through the sys_getpwXX
cache. Jeremy. (This used to be commit a648935ae93f781aedba8f89b0071a24e42f4543)
-rw-r--r--source3/lib/sysacls.c4
-rw-r--r--source3/printing/nt_printing.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/source3/lib/sysacls.c b/source3/lib/sysacls.c
index 94f0a10d46..8045fc000c 100644
--- a/source3/lib/sysacls.c
+++ b/source3/lib/sysacls.c
@@ -442,7 +442,7 @@ char *sys_acl_to_text(SMB_ACL_T acl_d, ssize_t *len_p)
break;
case SMB_ACL_USER:
- if ((pw = getpwuid(ap->a_id)) == NULL) {
+ if ((pw = sys_getpwuid(ap->a_id)) == NULL) {
slprintf(idbuf, sizeof(idbuf)-1, "%ld",
(long)ap->a_id);
id = idbuf;
@@ -979,7 +979,7 @@ char *sys_acl_to_text(SMB_ACL_T acl_d, ssize_t *len_p)
break;
case SMB_ACL_USER:
- if ((pw = getpwuid(ap->a_id)) == NULL) {
+ if ((pw = sys_getpwuid(ap->a_id)) == NULL) {
slprintf(idbuf, sizeof(idbuf)-1, "%ld",
(long)ap->a_id);
id = idbuf;
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c
index 32014f062c..a2337c25f3 100644
--- a/source3/printing/nt_printing.c
+++ b/source3/printing/nt_printing.c
@@ -378,7 +378,7 @@ static uint32 get_correct_cversion(fstring architecture, fstring driverpath_in,
}
become_root();
- pass = getpwuid(user->uid);
+ pass = sys_getpwuid(user->uid);
if(pass == NULL) {
DEBUG(0,("get_correct_cversion: Unable to get passwd entry for uid %u\n",
(unsigned int)user->uid ));
@@ -1109,7 +1109,7 @@ BOOL move_driver_to_download_area(NT_PRINTER_DRIVER_INFO_LEVEL driver_abstract,
get_short_archi(architecture, driver->environment);
become_root();
- pass = getpwuid(user->uid);
+ pass = sys_getpwuid(user->uid);
if(pass == NULL) {
DEBUG(0,("move_driver_to_download_area: Unable to get passwd entry for uid %u\n",
(unsigned int)user->uid ));