Searched refs:pw (Results 1 - 12 of 12) sorted by relevance
/sendmail/libsm/ |
H A D | mbdb.c | 64 { "pw", mbdb_pw_initialize, mbdb_pw_lookup, mbdb_pw_terminate }, 78 ** If this function is not called, then the "pw" implementation 84 ** "pw" means use getpwnam(). 177 ** SM_MBDB_FROMPW -- copy from struct pw to SM_MBDB_T 181 ** pw -- source passwd structure 188 sm_mbdb_frompw(user, pw) 190 struct passwd *pw; 193 (void) sm_strlcpy(user->mbdb_name, pw->pw_name, 195 user->mbdb_uid = pw->pw_uid; 196 user->mbdb_gid = pw 316 struct passwd *pw; local [all...] |
/sendmail/vacation/ |
H A D | vacation.c | 151 struct passwd *pw; local 167 pw = getpwuid(RealUid); 168 if (pw != NULL) 170 if (strlen(pw->pw_name) > MAXNAME - 1) 171 pw->pw_name[MAXNAME] = '\0'; 172 sm_snprintf(rnamebuf, sizeof rnamebuf, "%s", pw->pw_name); 296 if ((pw = getpwuid(getuid())) == NULL) 302 name = strdup(pw->pw_name); 303 user_info.smdbu_id = pw->pw_uid; 304 user_info.smdbu_group_id = pw [all...] |
/sendmail/praliases/ |
H A D | praliases.c | 69 struct passwd *pw; local 77 pw = getpwuid(RealUid); 78 if (pw != NULL) 80 if (strlen(pw->pw_name) > MAXNAME - 1) 81 pw->pw_name[MAXNAME] = 0; 82 sm_snprintf(rnamebuf, sizeof rnamebuf, "%s", pw->pw_name);
|
/sendmail/editmap/ |
H A D | editmap.c | 96 struct passwd *pw; local 122 pw = getpwuid(RealUid); 123 if (pw != NULL) 124 (void) sm_strlcpy(rnamebuf, pw->pw_name, sizeof rnamebuf); 244 pw = getpwnam(b); 245 if (pw == NULL) 249 TrustedUid = pw->pw_uid;
|
/sendmail/makemap/ |
H A D | makemap.c | 99 struct passwd *pw; local 127 pw = getpwuid(RealUid); 128 if (pw != NULL) 129 (void) sm_strlcpy(rnamebuf, pw->pw_name, sizeof rnamebuf); 272 pw = getpwnam(b); 273 if (pw == NULL) 278 TrustedUid = pw->pw_uid;
|
/sendmail/sendmail/ |
H A D | recipient.c | 1166 register struct passwd *pw; local 1233 while ((pw = getpwent()) != NULL) 1238 if (sm_strcasecmp(pw->pw_name, name) == 0) 1246 sm_pwfullname(pw->pw_gecos, pw->pw_name, buf, sizeof(buf)); 1250 sm_dprintf("fuzzy matches %s\n", pw->pw_name); 1251 message("sending to login name %s", pw->pw_name); 1255 if (pw != NULL) 1262 if (pw == NULL) 1264 sm_mbdb_frompw(user, pw); 1747 register struct passwd *pw; local [all...] |
H A D | err.c | 135 struct passwd *pw; local 205 pw = sm_getpwuid(RealUid); 206 if (pw != NULL) 207 user = pw->pw_name;
|
H A D | readcf.c | 1411 struct passwd *pw; local 1426 pw = sm_getpwnam(q); 1427 if (pw == NULL) 1434 m->m_uid = pw->pw_uid; 1435 m->m_gid = pw->pw_gid; 3016 register struct passwd *pw; local 3019 pw = sm_getpwnam(val); 3020 if (pw == NULL) 3027 DefUid = pw->pw_uid; 3028 DefGid = pw 3354 register struct passwd *pw; local 3540 register struct passwd *pw; local [all...] |
H A D | conf.c | 275 struct passwd *pw; local 291 if (((pw = sm_getpwnam("mailnull")) != NULL && pw->pw_uid != 0) || 292 ((pw = sm_getpwnam("sendmail")) != NULL && pw->pw_uid != 0) || 293 ((pw = sm_getpwnam("daemon")) != NULL && pw->pw_uid != 0)) 295 DefUid = pw->pw_uid; /* option u */ 296 DefGid = pw->pw_gid; /* option g */ 297 DefUser = newstr(pw 1120 register struct passwd *pw; local [all...] |
H A D | main.c | 103 char *Mbdb = "pw"; /* mailbox database defaults to /etc/passwd */ 174 struct passwd *pw; local 541 pw = sm_getpwuid(RealUid); 542 if (pw != NULL) 543 (void) sm_strlcpy(rnamebuf, pw->pw_name, sizeof(rnamebuf));
|
H A D | queue.c | 5546 struct passwd *pw; local 5589 else if ((pw = sm_getpwnam(user)) != NULL) 5591 if (*pw->pw_dir == '\0') 5593 else if (strcmp(pw->pw_dir, "/") == 0) 5596 a->q_home = sm_rpool_strdup_x(e->e_rpool, pw->pw_dir); 5597 a->q_uid = pw->pw_uid; 5598 a->q_gid = pw->pw_gid;
|
/sendmail/mail.local/ |
H A D | mail.local.c | 204 struct passwd *pw; local 208 char *mbdbname = "pw"; 395 (pw = getpwnam(from)) == NULL || 396 pw->pw_uid != uid)) 397 from = (pw = getpwuid(uid)) != NULL ? pw->pw_name : "???";
|
Completed in 857 milliseconds