You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/modules
zeripath c9c5bd88be
Stop logging EOFs and exit(1)s in ssh handler (#20476)
The code in modules/ssh/ssh.go:sessionHandler() currently cause an error to be
logged if `gitea serv` exits with a exit(1). This logging is useless because the
accompanying stderr is not provided and in any case the exit(1) is most likely due
to permissions errors.

Further it then causes the EOF to be logged - even though this is not helpful.

This PR simply checks the errors returned and stops logging them.

In the case of misconfigurations causing `gitea serv` to fail with exit(1)
the current logging is not helpful at determining this and users should simply
review the message passed over the ssh connection.

Fix #20473

Signed-off-by: Andrew Thornton <art27@cantab.net>
3 years ago
..
activitypub Add more linters to improve code readability (#19989) 3 years ago
analyze Simplify `IsVendor` (#19626) 3 years ago
appstate Use a struct as test options (#19393) 3 years ago
auth Remove legacy `+build:` constraint (#19582) 3 years ago
avatar Remove legacy `+build:` constraint (#19582) 3 years ago
base Add more linters to improve code readability (#19989) 3 years ago
cache Update go-chi/cache to utilize Ping() (#19719) 3 years ago
charset Fix various typos (#20338) 3 years ago
container Move reaction to models/issues/ (#19264) 3 years ago
context Extended permission checks. (#20517) 3 years ago
convert Include login_name in adminCreateUser response (#20283) 3 years ago
csv Allow render HTML with css/js external links (#19017) 3 years ago
doctor Fix various typos (#20338) 3 years ago
emoji
eventsource Add more linters to improve code readability (#19989) 3 years ago
generate
git Slightly simplify LastCommitCache (#20444) 3 years ago
gitgraph Add more linters to improve code readability (#19989) 3 years ago
graceful Add more linters to improve code readability (#19989) 3 years ago
hcaptcha
highlight Improve code diff highlight, fix incorrect rendered diff result (#19958) 3 years ago
hostmatcher Add tests for the host checking logic, clarify the behaviors (#20328) 3 years ago
httpcache Add Cache-Control header to html and api responses, add no-transform (#20432) 3 years ago
httplib
indexer Fix `dump-repo` git init, fix wrong error type for NullDownloader (#20182) 3 years ago
json Refactor legacy `unknwon/com` package, improve golangci lint (#19284) 3 years ago
lfs Removed some vestigial code related to Range bounds checks (#20312) 3 years ago
log Empty log queue on flush and close (#19994) 3 years ago
markup Use body text color in repository files table links (#20386) 3 years ago
metrics
migration Fix `dump-repo` git init, fix wrong error type for NullDownloader (#20182) 3 years ago
mirror Implement sync push mirror on commit (#19411) 3 years ago
nosql Fix various typos (#20338) 3 years ago
notification Added email notification option to receive all own messages (#20179) 3 years ago
options Remove legacy `+build:` constraint (#19582) 3 years ago
packages Add Docker /v2/_catalog endpoint (#20469) 3 years ago
paginator Remove legacy unmaintained packages, refactor to support change default locale (#19308) 3 years ago
password
pprof
private Allow manager logging to set SQL (#20064) 3 years ago
process Add more linters to improve code readability (#19989) 3 years ago
proxy
public Remove legacy `+build:` constraint (#19582) 3 years ago
queue Add more linters to improve code readability (#19989) 3 years ago
recaptcha
references Add more linters to improve code readability (#19989) 3 years ago
regexplru Custom regexp external issues (#17624) 3 years ago
repository Adjust transaction handling via db.Context (#20031) 3 years ago
secret
session
setting Use default values when provided values are empty (#20318) 3 years ago
sitemap Add sitemap support (#18407) 3 years ago
ssh Stop logging EOFs and exit(1)s in ssh handler (#20476) 3 years ago
storage Add more linters to improve code readability (#19989) 3 years ago
structs Dismiss prior pull reviews if done via web in review dismiss (#20197) 3 years ago
svg Remove legacy `+build:` constraint (#19582) 3 years ago
sync Use queue instead of memory queue in webhook send service (#19390) 3 years ago
templates Vertical align avatar at middle (#20302) 3 years ago
test Move access and repo permission to models/perm/access (#19350) 3 years ago
timeutil Make better use of i18n (#20096) 3 years ago
translation Allow dev i18n to be more concurrent (#20159) 3 years ago
typesniffer Fix raw endpoint PDF file headers (#19825) 3 years ago
updatechecker
upload
uri
user
util Add more linters to improve code readability (#19989) 3 years ago
validation use IsLoopback (#19477) 3 years ago
web Fix various typos (#20338) 3 years ago