Skip to content

sending exit-status before close #321

Open

Description

@drakkan

I just fixed restic (https://restic.net/) compatibility with sftpgo in this commit

drakkan/sftpgo@5be1d1b#diff-4ab88e083a7cb08083127ded5444ac8eR340

the problem is that pkg/sftp does not send the exit-status.

Maybe you could be interested to send the exit-status here:

https://github.com/pkg/sftp/blob/master/request-server.go#L178

setting the status to 0 if err == io.EOF otherwise 1.

I'm too busy to send a patch now, sorry

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions