Remove commented out code
This commit is contained in:
parent
ccac62f7e7
commit
6b03dd0ebd
1 changed files with 1 additions and 12 deletions
13
timeoutd.c
13
timeoutd.c
|
@ -221,19 +221,12 @@ char *argv[];
|
||||||
syslog(LOG_NOTICE,
|
syslog(LOG_NOTICE,
|
||||||
"User %s on %s exceeded maximum daily limit (%d minutes). Login check failed.",
|
"User %s on %s exceeded maximum daily limit (%d minutes). Login check failed.",
|
||||||
argv[1], argv[2], config[configline]->daymax);
|
argv[1], argv[2], config[configline]->daymax);
|
||||||
/*
|
|
||||||
printf("\r\nLogin not permitted. You have exceeded your maximum daily limit.\r\n");
|
|
||||||
printf("Please try again tomorrow.\r\n");
|
|
||||||
*/
|
|
||||||
logoff_msg(1);
|
logoff_msg(1);
|
||||||
exit(10);
|
exit(10);
|
||||||
case NOLOGIN:
|
case NOLOGIN:
|
||||||
syslog(LOG_NOTICE,
|
syslog(LOG_NOTICE,
|
||||||
"User %s not allowed to login on %s at this time. Login check failed.", argv[1],
|
"User %s not allowed to login on %s at this time. Login check failed.", argv[1],
|
||||||
argv[2]);
|
argv[2]);
|
||||||
/*
|
|
||||||
printf("\r\nLogin not permitted at this time. Please try again later.\r\n");
|
|
||||||
*/
|
|
||||||
logoff_msg(1);
|
logoff_msg(1);
|
||||||
exit(20);
|
exit(20);
|
||||||
case ACTIVE:
|
case ACTIVE:
|
||||||
|
@ -682,8 +675,7 @@ char *user;
|
||||||
logout_p = prev_p;
|
logout_p = prev_p;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if ( /*logout_p->elem.ut_type == DEAD_PROCESS && */
|
if (!strncmp(login_p->elem.ut_line, logout_p->elem.ut_line, UT_LINESIZE))
|
||||||
!strncmp(login_p->elem.ut_line, logout_p->elem.ut_line, UT_LINESIZE))
|
|
||||||
break;
|
break;
|
||||||
prev_p = logout_p;
|
prev_p = logout_p;
|
||||||
logout_p = logout_p->next;
|
logout_p = logout_p->next;
|
||||||
|
@ -800,9 +792,6 @@ int session;
|
||||||
while (!groupmatch && (secgr = getgrent()) != NULL) {
|
while (!groupmatch && (secgr = getgrent()) != NULL) {
|
||||||
p = secgr->gr_mem;
|
p = secgr->gr_mem;
|
||||||
while (*p && !groupmatch) {
|
while (*p && !groupmatch) {
|
||||||
/*
|
|
||||||
printf("Group %s member %s\n", secgr->gr_name, *p);
|
|
||||||
*/
|
|
||||||
if (!strcmp(*p, user))
|
if (!strcmp(*p, user))
|
||||||
groupmatch = chkmatch(secgr->gr_name, config[configline]->groups);
|
groupmatch = chkmatch(secgr->gr_name, config[configline]->groups);
|
||||||
p++;
|
p++;
|
||||||
|
|
Loading…
Add table
Reference in a new issue