Bug 1595135 - infinite loop when a non-existing key file is given for SCP or SFTP transfer
Summary: infinite loop when a non-existing key file is given for SCP or SFTP transfer
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: curl
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Kamil Dudka
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-06-26 08:32 UTC by Kamil Dudka
Modified: 2018-08-15 12:03 UTC (History)
4 users (show)

Fixed In Version: curl-7.61.0-6.fc30 curl-7.61.0-6.fc29
Clone Of:
Environment:
Last Closed: 2018-08-15 12:03:26 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Kamil Dudka 2018-06-26 08:32:32 UTC
Originally reported by Matěj Habrnál.


Version-Release number of selected component (if applicable):
curl-7.60.0-1.fc29.x86_64


Actual results:
% timeout 4 curl scp://localhost/~/tmp -svT/etc/fstab --key does-not-exist || echo $?
*   Trying ::1...
* TCP_NODELAY set
* Connected to localhost (::1) port 22 (#0)
* User: 
* Could not load private key file does-not-exist
* Could not load private key file does-not-exist
* Could not load private key file does-not-exist
* Could not load private key file does-not-exist
* Could not load private key file does-not-exist
* Could not load private key file does-not-exist
* Could not load private key file does-not-exist
* Could not load private key file does-not-exist
* Could not load private key file does-not-exist
* Could not load private key file does-not-exist
* Could not load private key file does-not-exist
* Could not load private key file does-not-exist
124

% timeout 4 curl sftp://localhost/~/tmp -svT/etc/fstab --key does-not-exist || echo $?
*   Trying ::1...
* TCP_NODELAY set
* Connected to localhost (::1) port 22 (#0)
* User: 
* Could not load private key file does-not-exist
* Could not load private key file does-not-exist
* Could not load private key file does-not-exist
* Could not load private key file does-not-exist
* Could not load private key file does-not-exist
* Could not load private key file does-not-exist
* Could not load private key file does-not-exist
* Could not load private key file does-not-exist
* Could not load private key file does-not-exist
* Could not load private key file does-not-exist
* Could not load private key file does-not-exist
* Could not load private key file does-not-exist
124

Comment 1 Jan Kurik 2018-08-14 11:05:53 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 29 development cycle.
Changing version to '29'.

Comment 2 Kamil Dudka 2018-08-14 11:36:15 UTC
I have proposed a fix upstream:

https://github.com/curl/curl/pull/2879

Comment 4 Kamil Dudka 2018-08-15 12:03:26 UTC
downstream commit:

https://src.fedoraproject.org/cgit/rpms/curl.git/commit/?id=023b327a


Note You need to log in before you can comment on or make changes to this bug.