Bug 3422

Summary: sftp UID/GID output issue about arguments in the command line
Product: Portable OpenSSH Reporter: gdelross
Component: scpAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED DUPLICATE    
Severity: enhancement CC: djm
Priority: P5    
Version: 8.0p1   
Hardware: Other   
OS: Linux   

Description gdelross 2022-04-14 20:48:48 AEST
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
Comment 1 Damien Miller 2022-09-28 12:07:38 AEST

*** This bug has been marked as a duplicate of bug 3465 ***
Comment 2 Damien Miller 2022-10-04 21:59:25 AEDT
Closing bugs from openssh-9.1 release cycle
Comment 3 Damien Miller 2023-03-17 13:41:36 AEDT
OpenSSH 9.3 has been released. Close resolved bugs