[Bug 3591] New: Introduction of "users-groups-by-id at openssh.com" causes nlink to be lost with long view

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Tue Jul 25 06:05:08 AEST 2023


https://bugzilla.mindrot.org/show_bug.cgi?id=3591

            Bug ID: 3591
           Summary: Introduction of "users-groups-by-id at openssh.com"
                    causes nlink to be lost with long view
           Product: Portable OpenSSH
           Version: 9.1p1
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5
         Component: sftp
          Assignee: unassigned-bugs at mindrot.org
          Reporter: nectar at apple.com

Prior to to OpenSSH 9.1p1, using the the `ls -l` with an OpenSSH sftp
client and OpenSSH sftp server would produce output including the
number of links for each file, e.g.

sftp> ls -l
drwx------    2 ladmin   guest           2 Jul 22  2016 Mail

However, when the sftp client is OpenSSH 9.1 or later, and the server
supports the "users-groups-by-id at openssh.com" extension, the client
disregards the “longname” sent by the server that includes the number
of links field. Instead, (just as done for the `-n` or `-h` options,)
the longname is reconstituted on the client side. Since the number of
links is not included in the file attributes, the output substitutes a
question mark, e.g.

sftp> ls -l
drwx------    ? ladmin   guest           2 Jul 22  2016 Mail

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list