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

Fix checking read-only paths #157

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JRobertson90
Copy link

The mount command appears to be returning the output in a different way than the code is expecting.

I've checked three linux devices (Android emulator, MacBookPro, and an Android Device) and they all return the output in the following format (after splitting on spaces, the indexes are):

[0] - The device that is mounted
[1] - The word "on"
[2] - The mount point
[3] - The word "type"
[4] - The file-system type
[5] - The comma separated options enclosed in parenthases

Alternate solution would be to change the indexes we use to 2, 5 (and make sure there are at least 6 args).

Just thought I'd put this up here. I found this while doing my research. The entire checkForRWPaths appears to be broken.

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.

1 participant