version 1.241, 2008/06/16 13:22:53 |
version 1.242, 2008/08/21 04:09:57 |
|
|
#include <kafs.h> |
#include <kafs.h> |
#endif |
#endif |
|
|
|
#define IS_INTERNAL_SFTP(c) \ |
|
(!strncmp(c, INTERNAL_SFTP_NAME, sizeof(INTERNAL_SFTP_NAME) - 1) && \ |
|
(c[sizeof(INTERNAL_SFTP_NAME) - 1] == '\0' || \ |
|
c[sizeof(INTERNAL_SFTP_NAME) - 1] == ' ' || \ |
|
c[sizeof(INTERNAL_SFTP_NAME) - 1] == '\t')) |
|
|
/* func */ |
/* func */ |
|
|
Session *session_new(void); |
Session *session_new(void); |
|
|
if (options.adm_forced_command) { |
if (options.adm_forced_command) { |
original_command = command; |
original_command = command; |
command = options.adm_forced_command; |
command = options.adm_forced_command; |
if (strcmp(INTERNAL_SFTP_NAME, command) == 0) |
if (IS_INTERNAL_SFTP(command)) |
s->is_subsystem = SUBSYSTEM_INT_SFTP; |
s->is_subsystem = SUBSYSTEM_INT_SFTP; |
else if (s->is_subsystem) |
else if (s->is_subsystem) |
s->is_subsystem = SUBSYSTEM_EXT; |
s->is_subsystem = SUBSYSTEM_EXT; |
|
|
} else if (forced_command) { |
} else if (forced_command) { |
original_command = command; |
original_command = command; |
command = forced_command; |
command = forced_command; |
if (strcmp(INTERNAL_SFTP_NAME, command) == 0) |
if (IS_INTERNAL_SFTP(command)) |
s->is_subsystem = SUBSYSTEM_INT_SFTP; |
s->is_subsystem = SUBSYSTEM_INT_SFTP; |
else if (s->is_subsystem) |
else if (s->is_subsystem) |
s->is_subsystem = SUBSYSTEM_EXT; |
s->is_subsystem = SUBSYSTEM_EXT; |