[Bug 3422] New: sftp UID/GID output issue about arguments in the command line

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Thu Apr 14 20:48:48 AEST 2022


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

            Bug ID: 3422
           Summary: sftp UID/GID output issue about arguments in the
                    command line
           Product: Portable OpenSSH
           Version: 8.0p1
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: scp
          Assignee: unassigned-bugs at mindrot.org
          Reporter: gdelross at redhat.com

Description of problem:

In the sftp session, there is a different output in the ls command, if
is added an arguments to the query.

Here an example:

sftp> ls -l
-rw-rw-r--    1 admin    admin           0 Apr 11 04:54
testfile_Us_Ny.txt

sftp> ls -l *
-rw-rw-r--    ? 1000     1000            0 Apr 11 04:54
testfile_Us_Ny.txt

With the additional arguments "*" the uid, gid are expresses with the
number id of the user and group instead of the long description, and
the link number are missing. 


Tested with the openssh 8.0p1.


How reproducible:

always

Steps to Reproduce:
1. Connect to the sftp server (the bug is present also do you connect
on localhost).

2. run ls -la 
3. run ls -la *

Actual results:

sftp> ls -l
-rw-rw-r--    1 admin    admin           0 Apr 11 04:54
testfile_Us_Ny.txt

sftp> ls -l *
-rw-rw-r--    ? 1000     1000            0 Apr 11 04:54
testfile_Us_Ny.txt


Expected results:

The same result for both command, with the correct info like this:

-rw-rw-r--    1 admin    admin           0 Apr 11 04:54
testfile_Us_Ny.txt

Best Regards

Giancarlo del Rossi

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


More information about the openssh-bugs mailing list