Mailing List Archive

[Bug 1549] change in remote command execution behavior
https://bugzilla.mindrot.org/show_bug.cgi?id=1549


Damien Miller <djm@mindrot.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |djm@mindrot.org




--- Comment #1 from Damien Miller <djm@mindrot.org> 2009-01-21 22:15:15 ---
This is due to a change in sshd interacting with a hack in bash.

sshd used to spawn session shells and communicate with them over a
socketpair() on some platforms but in 5.1 we changed this to pipe()s
everwhere to support proper half-closed semantics (see bug #85 for the
gory details). Apparently bash behaved differently when started when
stdin is a pipe to when it is a socket, and would only source .bashrc
when it is a socket. I'm not sure the reason for this behaviour - sshd
has used pipes to communicate with the shell on some platforms for many
years, so at best this only worked by accident.

https://bugzilla.redhat.com/show_bug.cgi?id=458839 has some more
details on this. I think the fix needs to be in bash.

--
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@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs
[Bug 1549] change in remote command execution behavior [ In reply to ]
https://bugzilla.mindrot.org/show_bug.cgi?id=1549


kaizaad@sharcnet.ca changed:

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




--- Comment #2 from kaizaad@sharcnet.ca 2009-01-24 01:25:45 ---
Hello Damien,

Appreciate the explanation.

thanks
-k

--
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@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs