Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: OpenSSH: Bugs

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

 

 

OpenSSH bugs RSS feed   Index | Next | Previous | View Threaded


bugzilla-daemon at bugzilla

Nov 19, 2009, 3:28 PM

Post #1 of 3 (458 views)
Permalink
[Bug 1599] "ForceCommand internal-sftp" not working as expected

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

Darren Tucker <dtucker [at] zip> changed:

What |Removed |Added
----------------------------------------------------------------------------
Attachment #1697|ok? |ok+
Flag| |

--
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


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


bugzilla-daemon at bugzilla

Nov 19, 2009, 4:16 PM

Post #3 of 3 (429 views)
Permalink
[Bug 1599] "ForceCommand internal-sftp" not working as expected [In reply to]

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

Darren Tucker <dtucker [at] zip> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED

--- Comment #4 from Darren Tucker <dtucker [at] zip> 2009-11-20 11:16:22 EST ---
This has been committed and will be in 5.4. Thanks for the report.

--
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

OpenSSH bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.