
bugzilla-daemon at bugzilla
Nov 19, 2009, 3:43 PM
Post #2 of 3
(427 views)
Permalink
|
|
[Bug 1599] "ForceCommand internal-sftp" not working as expected
[In reply to]
|
|
https://bugzilla.mindrot.org/show_bug.cgi?id=1599 --- Comment #3 from Darren Tucker <dtucker [at] zip> 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. _______________________________________________ openssh-bugs mailing list openssh-bugs [at] mindrot https://lists.mindrot.org/mailman/listinfo/openssh-bugs
|