Search
SailfishOS Open Build Service
>
Projects
>
home:elros34
:
glibc
>
busybox
> _service:tar_git:0004-ash-Load-ENV-file-also-if-SSH_CLIENT-SSH2_CLIENT-is-.patch
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File _service:tar_git:0004-ash-Load-ENV-file-also-if-SSH_CLIENT-SSH2_CLIENT-is-.patch of Package busybox
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Bidar?= <bjorn.bidar@jolla.com> Date: Thu, 3 Sep 2020 16:00:07 +0300 Subject: [PATCH] ash: Load $ENV file also if $SSH_CLIENT/SSH2_CLIENT is preset in env MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This emulates the behavior of bash loading .bashrc when $SSH_CLIENT or $SSH2_CLIENT is preset in env. Signed-off-by: Björn Bidar <bjorn.bidar@jolla.com> --- shell/ash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/ash.c b/shell/ash.c index a33ab0626..b336056e1 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -14471,7 +14471,7 @@ int ash_main(int argc UNUSED_PARAM, char **argv) #ifndef linux getuid() == geteuid() && getgid() == getegid() && #endif - iflag + iflag || ( minusc && ( lookupvar("SSH_CLIENT") != NULL || lookupvar("SSH2_CLIENT") != NULL)) && rootshell ) { const char *shinit = lookupvar("ENV"); if (shinit != NULL && *shinit != '\0') -- 2.31.1