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 6986e56791
Stop logging EOFs and exit(1)s in ssh handler (#20476) (#20529)
Backport #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 format with gofumpt (#18184) 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 Prettify number of issues (#17760) 3 years ago
cache Update go-chi/cache to utilize Ping() (#19719) 3 years ago
charset Detect truncated utf-8 characters at the end of content as still representing utf-8 (#19773) 3 years ago
container Move reaction to models/issues/ (#19264) 3 years ago
context Fix package permission checks for organizations (#20517) (#20520) 3 years ago
convert Move issues related files into models/issues (#19931) 3 years ago
csv Allow render HTML with css/js external links (#19017) 3 years ago
doctor Backtick table name in generic orphan check (#20019) (#20037) 3 years ago
emoji format with gofumpt (#18184) 3 years ago
eventsource Stop spurious APIFormat stopwatches logs (#20008) 3 years ago
generate Use base32 for 2FA scratch token (#18384) 3 years ago
git Fix commit status icon when in subdirectory (#20285) (#20385) 3 years ago
gitgraph Move some code into models/git (#19879) 3 years ago
graceful Fix signal loop in graceful manager (#19943) 3 years ago
hcaptcha hCaptcha Support (#12594) 4 years ago
highlight Fix copy/paste of empty lines (#19798) 3 years ago
hostmatcher Support `hostname:port` to pass host matcher's check #19543 (#19543) 3 years ago
httpcache Add Cache-Control header to html and api responses, add no-transform (#20432) (#20459) 3 years ago
httplib refactor httplib (#18338) 3 years ago
indexer Fix `dump-repo` git init, fix wrong error type for NullDownloader (#20182) (#20186) 3 years ago
json Refactor legacy `unknwon/com` package, improve golangci lint (#19284) 3 years ago
lfs Move some code into models/git (#19879) 3 years ago
log Empty log queue on flush and close (#19994) 3 years ago
markup Fix NPE when using non-numeric (#20277) (#20278) 3 years ago
metrics format with gofumpt (#18184) 3 years ago
migration Fix `dump-repo` git init, fix wrong error type for NullDownloader (#20182) (#20186) 3 years ago
nosql Remove legacy `unknwon/com` package (#19298) 3 years ago
notification Move issues related files into models/issues (#19931) 3 years ago
options Remove legacy `+build:` constraint (#19582) 3 years ago
packages Allow non-semver packages in the Conan package registry (#20412) (#20523) 3 years ago
paginator Remove legacy unmaintained packages, refactor to support change default locale (#19308) 3 years ago
password Fixed assert statements. (#16089) 4 years ago
pprof refactor: move from io/ioutil to io and os package (#17109) 3 years ago
private Add Goroutine stack inspector to admin/monitor (#19207) 3 years ago
process Set Setpgid on child git processes (#19865) 3 years ago
proxy Return nil proxy function if proxy not enabled (#16742) 4 years ago
public Remove legacy `+build:` constraint (#19582) 3 years ago
queue Fix 64-bit atomic operations on 32-bit machines (#19531) 3 years ago
recaptcha refactor: move from io/ioutil to io and os package (#17109) 3 years ago
references Custom regexp external issues (#17624) 3 years ago
regexplru Custom regexp external issues (#17624) 3 years ago
repository Remove legacy git code (ver < 2.0), fine tune markup tests (#19930) 3 years ago
secret Use `CryptoRandomBytes` instead of `CryptoRandomString` (#18439) 3 years ago
session format with gofumpt (#18184) 3 years ago
setting Allow RSA 2047 bit keys (#20272) (#20396) 3 years ago
ssh Stop logging EOFs and exit(1)s in ssh handler (#20476) (#20529) 3 years ago
storage Add Package Registry (#16510) 3 years ago
structs Dismiss prior pull reviews if done via web in review dismiss (#20197) (#20407) 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 fix push mirrors URL are no longer displayed on the UI (#20011) 3 years ago
test Move access and repo permission to models/perm/access (#19350) 3 years ago
timeutil Remove legacy unmaintained packages, refactor to support change default locale (#19308) 3 years ago
translation Remove legacy unmaintained packages, refactor to support change default locale (#19308) 3 years ago
typesniffer Fix raw endpoint PDF file headers (#19825) 3 years ago
updatechecker format with gofumpt (#18184) 3 years ago
upload Simplify parameter types (#18006) 3 years ago
uri Prevent NPE if gitea uploader fails to open url (#18080) 3 years ago
user Add gitea-vet (#10948) 5 years ago
util Prettify number of issues (#17760) 3 years ago
validation use IsLoopback (#19477) 3 years ago
web Unify repo settings & show better error (#19828) 3 years ago