document the weirdness of the reversal of arguments to SSH_FXP_SYMLINK
diff --git a/internal/encoding/ssh/filexfer/path_packets.go b/internal/encoding/ssh/filexfer/path_packets.go
index e6f692d..5792d47 100644
--- a/internal/encoding/ssh/filexfer/path_packets.go
+++ b/internal/encoding/ssh/filexfer/path_packets.go
@@ -323,7 +323,7 @@
//
// The order of the arguments to the SSH_FXP_SYMLINK method was inadvertently reversed.
// Unfortunately, the reversal was not noticed until the server was widely deployed.
-// Covered in Section 3.1 of https://github.com/openssh/openssh-portable/blob/master/PROTOCOL
+// Covered in Section 4.1 of https://github.com/openssh/openssh-portable/blob/master/PROTOCOL
type SymlinkPacket struct {
LinkPath string
TargetPath string
diff --git a/packet.go b/packet.go
index 4059cf8..1a1a87d 100644
--- a/packet.go
+++ b/packet.go
@@ -522,7 +522,12 @@
}
type sshFxpSymlinkPacket struct {
- ID uint32
+ ID uint32
+
+ // The order of the arguments to the SSH_FXP_SYMLINK method was inadvertently reversed.
+ // Unfortunately, the reversal was not noticed until the server was widely deployed.
+ // Covered in Section 4.1 of https://github.com/openssh/openssh-portable/blob/master/PROTOCOL
+
Targetpath string
Linkpath string
}