Bug 2694 - sftp ls command ignores sorting flags for globbed listing
Summary: sftp ls command ignores sorting flags for globbed listing
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: sftp (show other bugs)
Version: -current
Hardware: Other Other
: P5 normal
Assignee: Damien Miller
URL:
Keywords:
Depends on:
Blocks: V_7_6
  Show dependency treegraph
 
Reported: 2017-03-18 07:05 AEDT by Martin Prikryl
Modified: 2021-04-23 14:58 AEST (History)
2 users (show)

See Also:


Attachments
implement sorting for globbed ls (2.59 KB, patch)
2017-06-09 15:15 AEST, Damien Miller
dtucker: ok+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Prikryl 2017-03-18 07:05:28 AEDT
The `sftp` `ls` command ignores all sorting flags, for globbed listings.

Note a lack of `LS_*_SORT` flags use in the `do_globbed_ls` function, contrary to non-globbed `do_ls_dir`.

Posted based on:
http://serverfault.com/q/839005/168875
Comment 1 Damien Miller 2017-06-09 15:15:55 AEST
Created attachment 2991 [details]
implement sorting for globbed ls

This implement sorting for globbed ls.
Comment 2 Damien Miller 2017-06-10 16:34:58 AEST
Patch applied. This will be in OpenSSH 7.6
Comment 3 Damien Miller 2021-04-23 14:58:11 AEST
closing resolved bugs as of 8.6p1 release