Bug 2579

Summary: Link count support
Product: Portable OpenSSH Reporter: rian
Component: sftp-serverAssignee: Assigned to nobody <unassigned-bugs>
Status: NEW ---    
Severity: enhancement    
Priority: P5    
Version: 7.2p1   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch none

Description rian 2016-06-02 14:03:31 AEST
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?
Comment 1 rian 2016-12-07 14:40:59 AEDT
Ping