Fixed a couple of getpwXX calls that were not going through the sys_getpwXX
authorJeremy Allison <jra@samba.org>
Thu, 1 Mar 2001 05:21:19 +0000 (05:21 +0000)
committerJeremy Allison <jra@samba.org>
Thu, 1 Mar 2001 05:21:19 +0000 (05:21 +0000)
cache.
Jeremy.

source/lib/sysacls.c
source/printing/nt_printing.c

index 94f0a10d4680f098dd1b02ab90f39319ff3f24ac..8045fc000cdea7235239ce02c353aea0dc963a41 100644 (file)
@@ -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;
index 32014f062cb92b00389c8c48ac0ca7c93be1482c..a2337c25f309781745dc2761b7f4c3ffb9574d21 100644 (file)
@@ -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 ));