Bug 2395 - Error with sftp get wildcard when number of files is over 130
Summary: Error with sftp get wildcard when number of files is over 130
Status: CLOSED WORKSFORME
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: sftp (show other bugs)
Version: 6.6p1
Hardware: amd64 Linux
: P5 normal
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-08 07:32 AEST by matto_30
Modified: 2015-08-11 23:03 AEST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description matto_30 2015-05-08 07:32:06 AEST
If there are 130 or more files when trying to get files with "get *", SFTP will give me an error of File "{full_path}/*" not found.

Steps to reproduce:

$ mkdir tmp
$ for i in {1..130}; do touch tmp/file-$i; done
$ sftp centos@localhost:tmp
Connected to localhost.
Changing to: /home/centos/tmp
sftp> get *
File "/home/centos/tmp/*" not found.
sftp>
Comment 1 Darren Tucker 2015-05-08 09:31:26 AEST
I can't reproduce this with either -head or the 6.6p1 release on Fedora with the default build options, either with 130 files or 1300 files.

Which distro is it (I assume centos from the output)?  What options did you build OpenSSH with?  Is there anything else unusual about your config?

Also, please reproduce with sftp -vvv to produce debug logs and attach to this bug (using "Add an attachment" above).
Comment 2 Damien Miller 2015-05-08 09:33:59 AEST
Can't replicate - this looks like a Redhat change to OpenSSH.

http://pkgs.fedoraproject.org/cgit/openssh.git/tree/openssh-5.8p1-glob.patch

You should complain to your vendor
Comment 3 matto_30 2015-05-15 04:07:27 AEST
I definitely will. Thank you for checking into it.
Comment 4 Damien Miller 2015-08-11 23:03:27 AEST
Set all RESOLVED bugs to CLOSED with release of OpenSSH 7.1