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

SshScpFIle implementations of canRead/canWrite/canExecute are incomplete #126

Open
hierynomus opened this issue Jul 30, 2014 · 0 comments
Open

Comments

@hierynomus
Copy link
Contributor

The current implementation for the SshScpFile methods canRead, canWrite and canExecute are incomplete and incorrect.

If the user is not the owner of the file, the current implementations return incorrect values.

It's better to:

  1. check whether the user == owner, and in that case look at the first section of the lsResults,
  2. check whether the user is in the group that owns the file, then check the second section
  3. else check the third section
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

No branches or pull requests

1 participant