Mercurial > dropbear
comparison svr-chansession.c @ 1854:cba37fe1ddc8
Fix accidentally committed debug message
Was added Oct 18 2021
"Only redirect stderr after the session login."
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 22 Jan 2022 12:46:08 +0800 |
parents | 5c13e765ddbd |
children | 1d86a58fb52d |
comparison
equal
deleted
inserted
replaced
1853:2be3115a8762 | 1854:cba37fe1ddc8 |
---|---|
849 /* write the utmp/wtmp login record - must be after changing the | 849 /* write the utmp/wtmp login record - must be after changing the |
850 * terminal used for stdout with the dup2 above, otherwise | 850 * terminal used for stdout with the dup2 above, otherwise |
851 * the wtmp login will not be recorded */ | 851 * the wtmp login will not be recorded */ |
852 li = chansess_login_alloc(chansess); | 852 li = chansess_login_alloc(chansess); |
853 login_login(li); | 853 login_login(li); |
854 dropbear_log(LOG_WARNING, "bad thing happened"); | |
855 login_free_entry(li); | 854 login_free_entry(li); |
856 | 855 |
857 /* Can now dup2 stderr. Messages from login_login() have gone | 856 /* Can now dup2 stderr. Messages from login_login() have gone |
858 to the parent stderr */ | 857 to the parent stderr */ |
859 if (dup2(chansess->slave, STDERR_FILENO) < 0) { | 858 if (dup2(chansess->slave, STDERR_FILENO) < 0) { |