Bug 3422 - sftp UID/GID output issue about arguments in the command line
Summary: sftp UID/GID output issue about arguments in the command line
Status: CLOSED DUPLICATE of bug 3465
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: scp (show other bugs)
Version: 8.0p1
Hardware: Other Linux
: P5 enhancement
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-14 20:48 AEST by gdelross
Modified: 2023-03-17 13:41 AEDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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