1
0
mirror of https://github.com/drakkan/sftpgo.git synced 2025-11-29 22:08:10 +02:00

scp: fix wildcard uploads

Fixes #285
This commit is contained in:
Nicola Murino
2021-01-20 22:37:59 +01:00
parent 57976b4085
commit c0e09374a8
3 changed files with 91 additions and 20 deletions

View File

@@ -712,7 +712,8 @@ func (c *sshCommand) sendExitStatus(err error) {
exitStatus := sshSubsystemExitStatus{
Status: status,
}
c.connection.channel.(ssh.Channel).SendRequest("exit-status", false, ssh.Marshal(&exitStatus)) //nolint:errcheck
_, err = c.connection.channel.(ssh.Channel).SendRequest("exit-status", false, ssh.Marshal(&exitStatus))
c.connection.Log(logger.LevelDebug, "exit status sent, error: %v", err)
c.connection.channel.Close()
// for scp we notify single uploads/downloads
if c.command != scpCmdName {