mirror of
https://github.com/clearml/dropbear
synced 2025-02-12 07:25:30 +00:00
Don't bother printing errno in exit messages (the code wasn't valid anyway)
--HG-- extra : convert_revision : 84b4b2b17c096faebd10975a08e91954e2014d82
This commit is contained in:
parent
ae1b0b07cf
commit
8977fbbd97
@ -183,12 +183,6 @@ void svr_dropbear_exit(int exitcode, const char* format, va_list param) {
|
|||||||
"exit before auth: %s", format);
|
"exit before auth: %s", format);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (errno != 0) {
|
|
||||||
/* XXX - is this valid? */
|
|
||||||
snprintf(fmtbuf, sizeof(fmtbuf), "%s [%d %s]", fmtbuf,
|
|
||||||
errno, strerror(errno));
|
|
||||||
}
|
|
||||||
|
|
||||||
_dropbear_log(LOG_INFO, fmtbuf, param);
|
_dropbear_log(LOG_INFO, fmtbuf, param);
|
||||||
|
|
||||||
/* must be after we've done with username etc */
|
/* must be after we've done with username etc */
|
||||||
|
Loading…
Reference in New Issue
Block a user