[Bug 1768] scp: wrong error message when destination directory ends with a slash and is missing
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Fri Jan 9 03:21:48 AEDT 2015
https://bugzilla.mindrot.org/show_bug.cgi?id=1768
Jakub Jelen <jjelen at redhat.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jjelen at redhat.com
--- Comment #2 from Jakub Jelen <jjelen at redhat.com> ---
Created attachment 2523
--> https://bugzilla.mindrot.org/attachment.cgi?id=2523&action=edit
patch to improve error message
Hi,
I ran into this problem in RHBZ#1142223 [1] and tried to solve it.
After some time of digging in the source code I came up with solution
which I introduce here as a attachment. This added condition covers
only this one problematic case and according to regression test cases
published in portable tarbal, shouldn't bring here any regression.
Also I managed to write test case covering this problem. This file will
be attached as the second file.
Also I would like to say that the previous patch doesn't work, because
it will break recursive scp, for example:
> scp -r dir/ host:new_dir/
which is completely valid even if the new_dir doesn't exist.
[1] https://bugzilla.redhat.com/show_bug.cgi?id=1142223
--
You are receiving this mail because:
You are watching the assignee of the bug.
More information about the openssh-bugs
mailing list