1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-08 05:57:51 +03:00

Fixed a couple of getpwXX calls that were not going through the sys_getpwXX

cache.
Jeremy.
This commit is contained in:
Jeremy Allison -
parent 94b72c19fe
commit a648935ae9
2 changed files with 4 additions and 4 deletions

View File

@ -442,7 +442,7 @@ char *sys_acl_to_text(SMB_ACL_T acl_d, ssize_t *len_p)
break; break;
case SMB_ACL_USER: 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", slprintf(idbuf, sizeof(idbuf)-1, "%ld",
(long)ap->a_id); (long)ap->a_id);
id = idbuf; id = idbuf;
@ -979,7 +979,7 @@ char *sys_acl_to_text(SMB_ACL_T acl_d, ssize_t *len_p)
break; break;
case SMB_ACL_USER: 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", slprintf(idbuf, sizeof(idbuf)-1, "%ld",
(long)ap->a_id); (long)ap->a_id);
id = idbuf; id = idbuf;

View File

@ -378,7 +378,7 @@ static uint32 get_correct_cversion(fstring architecture, fstring driverpath_in,
} }
become_root(); become_root();
pass = getpwuid(user->uid); pass = sys_getpwuid(user->uid);
if(pass == NULL) { if(pass == NULL) {
DEBUG(0,("get_correct_cversion: Unable to get passwd entry for uid %u\n", DEBUG(0,("get_correct_cversion: Unable to get passwd entry for uid %u\n",
(unsigned int)user->uid )); (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); get_short_archi(architecture, driver->environment);
become_root(); become_root();
pass = getpwuid(user->uid); pass = sys_getpwuid(user->uid);
if(pass == NULL) { if(pass == NULL) {
DEBUG(0,("move_driver_to_download_area: Unable to get passwd entry for uid %u\n", DEBUG(0,("move_driver_to_download_area: Unable to get passwd entry for uid %u\n",
(unsigned int)user->uid )); (unsigned int)user->uid ));