bugzilla-daemon at mindrot.org
2022-Apr-14  10:48 UTC
[Bug 3422] New: sftp UID/GID output issue about arguments in the command line
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.
bugzilla-daemon at mindrot.org
2022-Sep-28  02:07 UTC
[Bug 3422] sftp UID/GID output issue about arguments in the command line
https://bugzilla.mindrot.org/show_bug.cgi?id=3422
Damien Miller <djm at mindrot.org> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE
                 CC|                            |djm at mindrot.org
--- Comment #1 from Damien Miller <djm at mindrot.org> ---
*** This bug has been marked as a duplicate of bug 3465 ***
-- 
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.
bugzilla-daemon at mindrot.org
2022-Oct-04  10:59 UTC
[Bug 3422] sftp UID/GID output issue about arguments in the command line
https://bugzilla.mindrot.org/show_bug.cgi?id=3422 --- Comment #2 from Damien Miller <djm at mindrot.org> --- Closing bugs from openssh-9.1 release cycle -- You are receiving this mail because: You are watching the assignee of the bug. You are watching someone on the CC list of the bug.
bugzilla-daemon at mindrot.org
2023-Mar-17  02:41 UTC
[Bug 3422] sftp UID/GID output issue about arguments in the command line
https://bugzilla.mindrot.org/show_bug.cgi?id=3422
Damien Miller <djm at mindrot.org> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED
--- Comment #3 from Damien Miller <djm at mindrot.org> ---
OpenSSH 9.3 has been released. Close resolved bugs
-- 
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.
Reasonably Related Threads
- [Bug 427] New: sftp does not preserve uid/gid on fetch
- [PATCH] fix sftp to preserve permissions and uid/gid
- ls hangs in internal-sftp for LDAP users + numeric uid/gid instead of names
- ls hangs in internal-sftp for LDAP users + numeric uid/gid instead of names
- [Bug 3069] New: sftp issues with [ or ] in path name