send

created pr with 40.1 on 2025-01-10T02:33:23Z · by c8ef7d19
cmds
checkout latest patchset:
ssh pr.pico.sh print 40 | git am -3
checkout any patchset in a patch request:
ssh pr.pico.sh print 40.[rev] | git am -3
add changes to patch request:
git format-patch main --stdout | ssh pr.pico.sh pr add 40

Patchset 40.1 on 2025-01-10T02:33:23Z · commit a468495

+0 -8 protocols/sftp/handler.go #
......@@ -1,7 +1,6 @@
11 package sftp
22
33 import (
4- "bytes"
54 "errors"
65 "io"
76 "io/fs"
......@@ -118,13 +117,6 @@ func toFileEntry(r *sftp.Request) *utils.FileEntry {
118117
119118 func (f *handler) Filewrite(r *sftp.Request) (io.WriterAt, error) {
120119 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-
128120 buf := &buffer{}
129121 entry.Reader = buf
130122
Back to top