These patches are now merged upstream: https://github.com/pkg/sftp/pull/392 https://github.com/pkg/sftp/pull/393
Fixes #204