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,
|
||||
"User %s on %s exceeded maximum daily limit (%d minutes). Login check failed.",
|
||||
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);
|
||||
exit(10);
|
||||
case NOLOGIN:
|
||||
syslog(LOG_NOTICE,
|
||||
"User %s not allowed to login on %s at this time. Login check failed.", argv[1],
|
||||
argv[2]);
|
||||
/*
|
||||
printf("\r\nLogin not permitted at this time. Please try again later.\r\n");
|
||||
*/
|
||||
logoff_msg(1);
|
||||
exit(20);
|
||||
case ACTIVE:
|
||||
|
@ -682,8 +675,7 @@ char *user;
|
|||
logout_p = prev_p;
|
||||
break;
|
||||
}
|
||||
if ( /*logout_p->elem.ut_type == DEAD_PROCESS && */
|
||||
!strncmp(login_p->elem.ut_line, logout_p->elem.ut_line, UT_LINESIZE))
|
||||
if (!strncmp(login_p->elem.ut_line, logout_p->elem.ut_line, UT_LINESIZE))
|
||||
break;
|
||||
prev_p = logout_p;
|
||||
logout_p = logout_p->next;
|
||||
|
@ -800,9 +792,6 @@ int session;
|
|||
while (!groupmatch && (secgr = getgrent()) != NULL) {
|
||||
p = secgr->gr_mem;
|
||||
while (*p && !groupmatch) {
|
||||
/*
|
||||
printf("Group %s member %s\n", secgr->gr_name, *p);
|
||||
*/
|
||||
if (!strcmp(*p, user))
|
||||
groupmatch = chkmatch(secgr->gr_name, config[configline]->groups);
|
||||
p++;
|
||||
|
|
Loading…
Add table
Reference in a new issue