version 1.154, 2003/03/05 22:33:43 |
version 1.155, 2003/04/08 20:21:29 |
|
|
* Any unknown messages in this phase are ignored, |
* Any unknown messages in this phase are ignored, |
* and a failure message is returned. |
* and a failure message is returned. |
*/ |
*/ |
log("Unknown packet type received after authentication: %d", type); |
logit("Unknown packet type received after authentication: %d", type); |
} |
} |
packet_start(success ? SSH_SMSG_SUCCESS : SSH_SMSG_FAILURE); |
packet_start(success ? SSH_SMSG_SUCCESS : SSH_SMSG_FAILURE); |
packet_send(); |
packet_send(); |
|
|
#endif |
#endif |
if (f) { |
if (f) { |
/* /etc/nologin exists. Print its contents and exit. */ |
/* /etc/nologin exists. Print its contents and exit. */ |
log("User %.100s not allowed because %s exists", |
logit("User %.100s not allowed because %s exists", |
pw->pw_name, _PATH_NOLOGIN); |
pw->pw_name, _PATH_NOLOGIN); |
while (fgets(buf, sizeof(buf), f)) |
while (fgets(buf, sizeof(buf), f)) |
fputs(buf, stderr); |
fputs(buf, stderr); |
|
|
int i; |
int i; |
|
|
packet_check_eom(); |
packet_check_eom(); |
log("subsystem request for %.100s", subsys); |
logit("subsystem request for %.100s", subsys); |
|
|
for (i = 0; i < options.num_subsystems; i++) { |
for (i = 0; i < options.num_subsystems; i++) { |
if (strcmp(subsys, options.subsystem_name[i]) == 0) { |
if (strcmp(subsys, options.subsystem_name[i]) == 0) { |
|
|
} |
} |
|
|
if (!success) |
if (!success) |
log("subsystem request for %.100s failed, subsystem not found", |
logit("subsystem request for %.100s failed, subsystem not found", |
subsys); |
subsys); |
|
|
xfree(subsys); |
xfree(subsys); |
|
|
Session *s; |
Session *s; |
|
|
if ((s = session_by_channel(c->self)) == NULL) { |
if ((s = session_by_channel(c->self)) == NULL) { |
log("session_input_channel_req: no session %d req %.100s", |
logit("session_input_channel_req: no session %d req %.100s", |
c->self, rtype); |
c->self, rtype); |
return 0; |
return 0; |
} |
} |