Bugzilla – Attachment 1647 Details for
Bug 1605
internal-sftp does not drop conections properly, it will hang
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Temporarily fix (changed code in session.c) for this issue
do_exec_inside_session.c (text/plain), 1.44 KB, created by
zpbrent
on 2009-06-11 17:09:35 AEST
(
hide
)
Description:
Temporarily fix (changed code in session.c) for this issue
Filename:
MIME Type:
Creator:
zpbrent
Created:
2009-06-11 17:09:35 AEST
Size:
1.44 KB
patch
obsolete
>/* > * This is called to fork and execute a command. If another command is > * to be forced, execute that instead. > */ >int >do_exec(Session *s, const char *command) >{ > int ret; > > if (options.adm_forced_command) { > original_command = command; > command = options.adm_forced_command; > if (s->is_subsystem && IS_INTERNAL_SFTP(command)) > s->is_subsystem = SUBSYSTEM_INT_SFTP; > else if (s->is_subsystem) > s->is_subsystem = SUBSYSTEM_EXT; > debug("Forced command (config) '%.900s'", command); > } else if (forced_command) { > original_command = command; > command = forced_command; > if (s->is_subsystem && IS_INTERNAL_SFTP(command)) > s->is_subsystem = SUBSYSTEM_INT_SFTP; > else if (s->is_subsystem) > s->is_subsystem = SUBSYSTEM_EXT; > debug("Forced command (key option) '%.900s'", command); > } > >#ifdef SSH_AUDIT_EVENTS > if (command != NULL) > PRIVSEP(audit_run_command(command)); > else if (s->ttyfd == -1) { > char *shell = s->pw->pw_shell; > > if (shell[0] == '\0') /* empty shell means /bin/sh */ > shell =_PATH_BSHELL; > PRIVSEP(audit_run_command(shell)); > } >#endif > if (s->ttyfd != -1) > ret = do_exec_pty(s, command); > else > ret = do_exec_no_pty(s, command); > > original_command = NULL; > > /* > * Clear loginmsg: it's the child's responsibility to display > * it to the user, otherwise multiple sessions may accumulate > * multiple copies of the login messages. > */ > buffer_clear(&loginmsg); > > return ret; >} >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1605
: 1647