Searched refs:pwd_buf (Results 1 – 5 of 5) sorted by relevance
/illumos-gate/usr/src/cmd/fs.d/nfs/nfsmapid/ |
H A D | nfsmapid.c | 201 char *pwd_buf; in daemon_init() local 237 if ((pwd_buf = malloc(pwd_buflen)) == NULL) in daemon_init() 240 (void) _uncached_getpwnam_r("NF21dmvP", &pwd, pwd_buf, pwd_buflen); in daemon_init() 241 (void) _uncached_getpwuid_r(1181794, &pwd, pwd_buf, pwd_buflen); in daemon_init() 243 if ((grp_buf = realloc(pwd_buf, grp_buflen)) == NULL) { in daemon_init() 244 free(pwd_buf); in daemon_init()
|
H A D | nfsmapid_server.c | 96 char *pwd_buf; in nfsmapid_str_uid() local 159 if ((pwd_buf = malloc(pwd_buflen)) == NULL || in nfsmapid_str_uid() 160 (pwd_rc = getpwnam_r(user, &pwd, pwd_buf, pwd_buflen, &pwd_ptr)) in nfsmapid_str_uid() 163 if (pwd_buf == NULL || pwd_rc != 0) in nfsmapid_str_uid() 170 free(pwd_buf); in nfsmapid_str_uid() 181 free(pwd_buf); in nfsmapid_str_uid() 194 char *pwd_buf = NULL; in nfsmapid_uid_str() local 263 if ((pwd_buf = malloc(pwd_buflen)) == NULL || dom_str_len == 0 || in nfsmapid_uid_str() 264 getpwuid_r(uid, &pwd, pwd_buf, pwd_buflen, &pwd_ptr) != 0 || in nfsmapid_uid_str() 271 if (pwd_buf == NULL && (pwd_buf = in nfsmapid_uid_str() [all …]
|
/illumos-gate/usr/src/lib/libdevinfo/ |
H A D | devinfo_devperm.c | 344 char pwd_buf[PATH_MAX]; in check_driver_match() local 348 (void) strcpy(pwd_buf, devfs_path); in check_driver_match() 349 p = strrchr(pwd_buf, ':'); in check_driver_match() 352 node = di_init(pwd_buf, DINFOMINOR); in check_driver_match() 396 char pwd_buf[NSS_BUFLEN_PASSWD]; in is_login_user() local 399 if ((getpwuid_r(uid, &pwd, pwd_buf, NSS_BUFLEN_PASSWD, &ppwd) != 0) || in is_login_user()
|
/illumos-gate/usr/src/lib/passwdutil/ |
H A D | ldap_attr.c | 253 char pwd_buf[1024]; in ldap_user_to_authenticate() local 266 if (getpwuid_r(priviledged_uid, &pwr, pwd_buf, in ldap_user_to_authenticate() 267 sizeof (pwd_buf)) != NULL) { in ldap_user_to_authenticate()
|
/illumos-gate/usr/src/cmd/devfsadm/ |
H A D | devfsadm.c | 2832 char pwd_buf[PATH_MAX]; in set_logindev_perms() local 2884 (void) strcpy(pwd_buf, devfs_path); in set_logindev_perms() 2885 p = strrchr(pwd_buf, ':'); in set_logindev_perms() 2893 devlink, pwd_buf); in set_logindev_perms() 2895 node = di_init(pwd_buf, DINFOMINOR); in set_logindev_perms() 2952 rv = getpwuid_r(sb.st_uid, &pwd, pwd_buf, sizeof (pwd_buf), &resp); in set_logindev_perms()
|