Created attachment 2820 [details] Patch This patch adds client and server support for transmitting the st_nlink field across SSH2_FXP_NAME and SSH2_FXP_ATTRS responses. One downside is that it adds this much new overhead for those responses: sizeof(uint32_t) + sizeof(uint32_t) + strlen("attr-link-count@openssh.com") + sizeof(uint32_t) + sizeof(uint64_t) i.e. 47 bytes. If this overhead is not acceptable, perhaps this extension can only be enabled if the client sends the "attr-link-count@openssh.com" extension in the SSH2_FXP_INIT request. If this is the case, should sftp-client advertise this extension by default or no?
Ping