[Bug 1549] change in remote command execution behavior

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Wed Jan 21 22:15:16 EST 2009


Damien Miller <djm at mindrot.org> changed:

           What    |Removed                     |Added
                 CC|                            |djm at mindrot.org

--- Comment #1 from Damien Miller <djm at 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.

More information about the openssh-bugs mailing list