send
created pr with
40.1
cmds
checkout latest patchset:
ssh pr.pico.sh print 40 | git am -3checkout any patchset in a patch request:
ssh pr.pico.sh print 40.[rev] | git am -3add changes to patch request:
git format-patch main --stdout | ssh pr.pico.sh pr add 40
Patchset
40.1
fix(sftp): only call `writeHandler.Write` once during PUT
Eric Bower
2025-01-10T02:32:49ZSemantic diff summary
0 added,
2 modified,
0 signature changed,
0 removed
across 1 analyzed file
+0
-8
protocols/sftp/handler.go
#
| ... | ... | @@ -118,13 +117,6 @@ func toFileEntry(r *sftp.Request) *utils.FileEntry { | |
| 118 | 117 | ||
| 119 | 118 | func (f *handler) Filewrite(r *sftp.Request) (io.WriterAt, error) { | |
| 120 | 119 | entry := toFileEntry(r) | |
| 121 | - | entry.Reader = bytes.NewReader([]byte{}) | |
| 122 | - | ||
| 123 | - | _, err := f.writeHandler.Write(f.session, entry) | |
| 124 | - | if err != nil { | |
| 125 | - | return nil, err | |
| 126 | - | } | |
| 127 | - | ||
| 128 | 120 | buf := &buffer{} | |
| 129 | 121 | entry.Reader = buf | |
| 130 | 122 |