diff options
-rw-r--r-- | mbbsd/mbbsd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index 7ccf5909..ea541e5b 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -69,6 +69,9 @@ start_daemon() close(fd); } + if(getenv("SSH_CLIENT")) + unsetenv("SSH_CLIENT"); + /* * rocker.011018: we don't need to remember original tty, so request a * new session id @@ -84,9 +87,6 @@ start_daemon() exit(0); } #endif - - if(getenv("SSH_CLIENT")) - unsetenv("SSH_CLIENT"); } static void |