|
Lines 2289-2300
Link Here
|
| 2289 |
|
2289 |
|
| 2290 |
/* Check if .hushlogin exists. */ |
2290 |
/* Check if .hushlogin exists. */ |
| 2291 |
snprintf(line, sizeof line, "%.200s/.hushlogin", pw->pw_dir); |
2291 |
snprintf(line, sizeof line, "%.200s/.hushlogin", pw->pw_dir); |
| 2292 |
quiet_login = stat(line, &st) >= 0; |
|
|
| 2293 |
#ifdef LOGIN_CAP |
2292 |
#ifdef LOGIN_CAP |
| 2294 |
lc = login_getpwclass(pw); |
2293 |
lc = login_getpwclass(pw); |
| 2295 |
if (lc == NULL) |
2294 |
quiet_login = (stat(line, &st) >= 0) |
| 2296 |
lc = login_getclassbyname(NULL, pw); |
2295 |
|| login_getcapbool(lc, "hushlogin", 0); |
| 2297 |
quiet_login = login_getcapbool(lc, "hushlogin", quiet_login); |
2296 |
#else |
|
|
2297 |
quiet_login = stat(line, &st) >= 0; |
| 2298 |
#endif /* LOGIN_CAP */ |
2298 |
#endif /* LOGIN_CAP */ |
| 2299 |
|
2299 |
|
| 2300 |
#ifdef __FreeBSD__ |
2300 |
#ifdef __FreeBSD__ |