Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed scp regressions #878

Merged
merged 1 commit into from
Mar 30, 2017
Merged

Fixed scp regressions #878

merged 1 commit into from
Mar 30, 2017

Conversation

kontsevoy
Copy link
Contributor

@kontsevoy kontsevoy commented Mar 28, 2017

This PR fixes #877.

Summary

  1. Minor addition to Makefile to pull new .go files from tool/teleport/common
  2. os.Glob() returns an empty list (instead of an error) if the file/pattern is not found, so added check for that.
  3. sendFile was prematurely sending 'C' command before trying to open a file. This used to lead to creation of empty files for invalid sources.

Also, removed some confusing comments.

Issues

make test on OSX does not work for me and it's not related to this PR. This is what I see:

$ make test
?   	github.com/gravitational/teleport/tool/tsh	[no test files]
signal: killed
FAIL	github.com/gravitational/teleport/tool/tsh/common	0.007s
signal: killed
FAIL	github.com/gravitational/teleport/lib/auth	0.007s
?   	github.com/gravitational/teleport/lib/auth/mocku2f	[no test files]
signal: killed
FAIL	github.com/gravitational/teleport/lib/auth/native	0.006s
...

not sure what "signal:killed" means.

@russjones
Copy link
Contributor

russjones commented Mar 29, 2017

Looks like the signal: killed errors are caused by an update to macOS: golang/go#19734

I was successfully able to run tests by appending -ldflags -s to go test.

In this commit:

1. Minor addition to Makefile to pull new .go files from
   tool/teleport/common

2. os.Glob() returns an empty list (instead of an error) if the
   file/pattern is not found, so added check for that.

3. sendFile was prematurely sending 'C' command before trying to open a
   file. This used to lead to creation of empty files for invlaid
   sources.

Also, removed some confusing comments.
@russjones russjones merged commit e87f2fc into master Mar 30, 2017
@russjones russjones deleted the ev/877 branch March 30, 2017 00:12
hatched pushed a commit to hatched/teleport-merge that referenced this pull request Nov 30, 2022
hatched pushed a commit that referenced this pull request Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tsh scp does not report errors on the client side
3 participants