Displaying 2 results from an estimated 2 matches for "shell_var".
2011 Jun 30
4
sshd and .bashrc
...led to determine which dotfiles (if any) to
source ...
if (interactive_shell == 0 && no_rc == 0 && login_shell == 0 &&
act_like_sh == 0 && command_execution_string)
{
#ifdef SSH_SOURCE_BASHRC
run_by_ssh = (find_variable ("SSH_CLIENT") != (SHELL_VAR *)0) ||
(find_variable ("SSH2_CLIENT") != (SHELL_VAR *)0);
#else
run_by_ssh = 0;
#endif
/* If we were run by sshd or we think we were run by rshd, execute
~/.bashrc if we are a top-level shell. */
if ((run_by_ssh || isnetconn (fileno (stdin))) && shell_lev...
2000 Dec 06
8
openssh-SNAP-20001207 scp "Bad file descriptor" sort-of work-around
Everything seems to work, though I still have trouble with scp. The
behaviour is not protocol dependent - acts the same with either. (Using
RedHat 6.2)
When I scp <file> <host>:<dir>, bash is invoked as a login shell on the
server side host - this doesn't seem right. With my /etc/profile, I get
Dec 6 15:06:20 amethyst sshd[3027]: error: select: Bad file descriptor
in