| Summary: | scp: wrong error message when destination directory ends with a slash and is missing | ||
|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Colin Watson <cjwatson> |
| Component: | scp | Assignee: | Assigned to nobody <unassigned-bugs> |
| Status: | NEW --- | ||
| Severity: | normal | CC: | dtucker, jjelen, mikelmcdaniel |
| Priority: | P2 | ||
| Version: | -current | ||
| Hardware: | All | ||
| OS: | All | ||
| URL: | https://bugs.launchpad.net/bugs/18757 | ||
| Bug Depends on: | |||
| Bug Blocks: | 3549 | ||
| Attachments: | |||
|
Description
Colin Watson
2010-05-10 06:36:19 AEST
Hello. This bug still exists today. A friend of mine and I were confused and motivated enough to fix it ourselves and/or seek out this bug (or one of it's duplicates at https://bugs.launchpad.net/bugs/18757 or https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=473137 or https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=152909 or https://bugzilla.redhat.com/show_bug.cgi?id=1142223). I'm new to contributing to open source in general and I'm genuinely curious: How can I help get this resolved? It seems like a bug, that negatively affects people, with a simple solution. Created attachment 2523 [details] 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 Created attachment 2524 [details]
patch to verify this problem in regress test suite
Created attachment 2526 [details]
Patch revised
|