Displaying 6 results from an estimated 6 matches for "subsystem_int_sftp".
2008 Aug 19
1
fixed: [patch] fix to ForceCommand to support additional arguments to internal-sftp
...;
- if (strcmp(INTERNAL_SFTP_NAME, command) == 0)
+ if (strcmp(INTERNAL_SFTP_NAME, command) == 0 ||
strncmp(INTERNAL_SFTP_NAME, command, strlen(INTERNAL_SFTP_NAME)) == 0 &&
isspace(command[strlen(INTERNAL_SFTP_NAME)]))
s->is_subsystem = SUBSYSTEM_INT_SFTP;
else if (s->is_subsystem)
s->is_subsystem = SUBSYSTEM_EXT;
@@ -789,7 +789,7 @@
} else if (forced_command) {
original_command = command;
command = forced_command;
- if (strcmp(INTERNAL_SFTP_NAME, com...
2008 Aug 19
1
[patch] fix to ForceCommand to support additional arguments to internal-sftp
...command = options.adm_forced_command;
- if (strcmp(INTERNAL_SFTP_NAME, command) == 0)
+ if (strncmp(INTERNAL_SFTP_NAME, command,
strlen(INTERNAL_SFTP_NAME)) == 0 &&
isspace(command[strlen(INTERNAL_SFTP_NAME)]))
s->is_subsystem = SUBSYSTEM_INT_SFTP;
else if (s->is_subsystem)
s->is_subsystem = SUBSYSTEM_EXT;
@@ -789,7 +789,7 @@
} else if (forced_command) {
original_command = command;
command = forced_command;
- if (strcmp(INTERNAL_SFTP_NAME, com...
2009 May 18
6
[Bug 1599] New: "ForceCommand internal-sftp" not working as expected
...y 127.0.0.1
Setting "Subsystem sftp internal-sftp" works around the problem, but
that option is not allowed inside a Match block.
If the stat() call in session_subsystem_req succeeds, is_subsystem is
set to SUBSYSTEM_EXT; then do_exec is called, it overrides this and
sets is_subsystem = SUBSYSTEM_INT_SFTP.
I believe that calling stat() on the external program and then calling
the internal sftp handler is not intended behaviour.
Regards
J?rn Heissler
--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the...
2009 Jun 11
6
[Bug 1606] New: internal-sftp does not drop conections properly, it will hang
...ened
(None Subsystem client connected to the internal-sftp Subsystem
server), it looks like this is the root cause about this hang.
Based on the root cause, I have generated a temporarily fix for this
issue. Just use IS_INTERNAL_SFTP(command) to check whether to set the
session->is_subsystem to SUBSYSTEM_INT_SFTP is not sufficient, we also
have use if (s->is_subsystem != SUBSYSTEM_NONE) to check if the
requirement from the client belong to subsystem or not meanwhile.
I will list the detial detail of the fix below and please help us to
have a review:
======================================================...
2012 May 17
2
New Subsystem criteria for Match option block in OpenSSH server
...hing for subsystem into the options repository */
2091,2105c2092,2120
< if (strcmp(subsys, options.subsystem_name[i]) == 0) {
< prog = options.subsystem_command[i];
< cmd = options.subsystem_args[i];
< if (strcmp(INTERNAL_SFTP_NAME, prog) == 0) {
< s->is_subsystem = SUBSYSTEM_INT_SFTP;
< debug("subsystem: %s", prog);
< } else {
< if (stat(prog, &st) < 0)
< debug("subsystem: cannot stat %s: %s",
< prog, strerror(errno));
< s->is_subsystem = SUBSYSTEM_EXT;
< debug("subsystem: exec() %s",...
2009 Aug 28
8
[Bug 1637] New: Change the context when starting internal-sftp
https://bugzilla.mindrot.org/show_bug.cgi?id=1637
Summary: Change the context when starting internal-sftp
Product: Portable OpenSSH
Version: 5.2p1
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: sftp-server
AssignedTo: unassigned-bugs at mindrot.org