version 1.46, 2013/04/29 00:28:23 |
version 1.47, 2013/11/06 21:30:56 |
|
|
{ |
{ |
int errflags; |
int errflags; |
|
|
|
if (!def_use_loginclass) |
|
return; |
|
|
/* |
/* |
* Don't make it a fatal error if the user didn't specify the login |
* Don't make it a fatal error if the user didn't specify the login |
* class themselves. We do this because if login.conf gets |
* class themselves. We do this because if login.conf gets |
|
|
(pw->pw_uid == 0) ? LOGIN_DEFROOTCLASS : LOGIN_DEFCLASS; |
(pw->pw_uid == 0) ? LOGIN_DEFROOTCLASS : LOGIN_DEFCLASS; |
} |
} |
|
|
|
/* Make sure specified login class is valid. */ |
lc = login_getclass(login_class); |
lc = login_getclass(login_class); |
if (!lc || !lc->lc_class || strcmp(lc->lc_class, login_class) != 0) { |
if (!lc || !lc->lc_class || strcmp(lc->lc_class, login_class) != 0) { |
log_error(errflags, "unknown login class: %s", login_class); |
log_error(errflags, "unknown login class: %s", login_class); |
if (!lc) |
def_use_loginclass = FALSE; |
lc = login_getclass(NULL); /* needed for login_getstyle() later */ |
|
} |
} |
} |
} |
#else |
#else |