[Bug 2338] New: scp -3 doesn't give an error on missing source directory

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Wed Jan 14 20:36:06 AEDT 2015


https://bugzilla.mindrot.org/show_bug.cgi?id=2338

            Bug ID: 2338
           Summary: scp -3 doesn't give an error on missing source
                    directory
           Product: Portable OpenSSH
           Version: 6.7p1
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: scp
          Assignee: unassigned-bugs at mindrot.org
          Reporter: jjelen at redhat.com

This bug was created as a copy from RHBZ#1159307
(https://bugzilla.redhat.com/show_bug.cgi?id=1159307)
------------------------------------------------
Description of problem:

scp -3r a:foo user at b:

foo didn't exist, but scp gave no error message.

(a and b are rhel7 boxen, also seems to happen if a is rhel5, so I
think it's actually the client end, which is my f21 laptop)

Version-Release number of selected component (if applicable):
openssh-clients-6.6.1p1-5.fc21.1.x86_64 (my laptop)
openssh-server-6.4p1-8.el7.x86_64 (RHEL7 host a and b)

How reproducible:
100%

Steps to Reproduce:
1. scp -3r a:foo b:
    where foo doesn't exist

Actual results:
Apparent success

Expected results:
An error, since foo didn't exist on the source

Additional info:
adding -v shows:

Sink: scp: foo: No such file or directory


Comment 1 Jakub Jelen 2015-01-14 10:21:51 CET

I tried this use case also with upstream release and it behaves the
same.

In man page of scp, there is note:
> Note that this option disables the progress meter.

And I would say that this issue is related to this note, because the
file transfer is made through the local host and the inputs and outputs
of both remote commands are connected (but it doesn't change the thing
that stderr should output).

All the behaviour of -3 option is quite strange, since the errors from
source system are written only with -v option and errors from target
system are never written.

I can try to place the question into openssh bugzilla, but upstream is
not much willing to maintain scp.

For more information, this feature is related to this bugzilla [1], but
without much discussion.

[1] https://bugzilla.mindrot.org/show_bug.cgi?id=1837

------------------------------------------------

Not sure if it is feature or bug. I would like to get some opinion or
clarification from the authors.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list