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

operations.download() doesn't have all privileges #39

Closed
vain opened this issue Nov 3, 2013 · 2 comments
Closed

operations.download() doesn't have all privileges #39

vain opened this issue Nov 3, 2013 · 2 comments
Labels

Comments

@vain
Copy link
Member

vain commented Nov 3, 2013

Upstream bug report: fabric/fabric#700

For us, it means that download() is pretty useless. A lot of stuff is not readable for ordinary users.

I'm inclined to implement the sudo cat hackaround.

@vain
Copy link
Member Author

vain commented Nov 9, 2013

sudo cat does not work reliably. Fabric decides to strip trailing newlines.

Options:

  1. Do a sudo cat | base64. Feels like a joke, increases size of transferred data, but produces correct results.
  2. Do a t=$(mktemp); cp $file "$t", download the temporary file using fabric.get, then rm "$t". Slow and might leave data hanging around in /tmp.

I'd go for option number 1.

@trehn
Copy link
Member

trehn commented Nov 9, 2013

Aure you sure that's fabric? I smell LineBuffer.

I was originally thinking gzip instead of base64, but apprently we can't handle non-ASCII output for node.run() at all. :(

Looks like this LineBuffer thing needs a makeover.

@vain vain closed this as completed in 24b137d Nov 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants