[Bug 1599] "ForceCommand internal-sftp" not working as expected

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Fri Nov 20 10:43:52 EST 2009


https://bugzilla.mindrot.org/show_bug.cgi?id=1599

--- Comment #3 from Darren Tucker <dtucker at zip.com.au> 2009-11-20 10:43:51 EST ---
(From update of attachment 1697)
>Index: session.c
>===================================================================
>RCS file: /cvs/src/usr.bin/ssh/session.c,v
>retrieving revision 1.247
>diff -u -p -r1.247 session.c
>--- session.c	6 Oct 2009 04:46:40 -0000	1.247
>+++ session.c	6 Oct 2009 04:54:18 -0000
>@@ -1717,11 +1717,10 @@ session_subsystem_req(Session *s)
> 			cmd = options.subsystem_args[i];
> 			if (!strcmp(INTERNAL_SFTP_NAME, prog)) {
> 				s->is_subsystem = SUBSYSTEM_INT_SFTP;
>-			} else if (stat(prog, &st) < 0) {
>-				error("subsystem: cannot stat %s: %s", prog,
>-				    strerror(errno));
>-				break;
> 			} else {

btw: unbalanced bracket

>+				if (stat(prog, &st) < 0) {
>+					debug("subsystem: cannot stat %s: %s",
>+					    prog, strerror(errno));
> 				s->is_subsystem = SUBSYSTEM_EXT;
> 			}
> 			debug("subsystem: exec() %s", cmd);

-- 
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.


More information about the openssh-bugs mailing list