mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
switch to signame for cross system compat
This commit is contained in:
@@ -35,7 +35,7 @@ type FeInputPacketType struct {
|
||||
CK base.CommandKey `json:"ck"`
|
||||
Remote sstore.RemotePtrType `json:"remote"`
|
||||
InputData64 string `json:"inputdata64"`
|
||||
SigNum int `json:"signum,omitempty"`
|
||||
SigName string `json:"signame,omitempty"`
|
||||
WinSize *packet.WinSize `json:"winsize,omitempty"`
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -235,10 +235,10 @@ func sendCmdInput(pk *scpacket.FeInputPacketType) error {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if pk.SigNum != 0 || pk.WinSize != nil {
|
||||
if pk.SigName != "" || pk.WinSize != nil {
|
||||
siPk := packet.MakeSpecialInputPacket()
|
||||
siPk.CK = pk.CK
|
||||
siPk.SigNum = pk.SigNum
|
||||
siPk.SigName = pk.SigName
|
||||
siPk.WinSize = pk.WinSize
|
||||
err = msh.SendSpecialInput(siPk)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user