Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf2aef07

Browse files
authored
fix(agent/agentssh): allow scp to exit with zero status (#12028)
Fixes#11786
1 parentd3ccb07 commitf2aef07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎agent/agentssh/agentssh.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ func (s *Server) sftpHandler(logger slog.Logger, session ssh.Session) {
557557
deferserver.Close()
558558

559559
err=server.Serve()
560-
iferrors.Is(err,io.EOF) {
560+
iferr==nil||errors.Is(err,io.EOF) {
561561
// Unless we call `session.Exit(0)` here, the client won't
562562
// receive `exit-status` because `(*sftp.Server).Close()`
563563
// calls `Close()` on the underlying connection (session),

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp