Skip to content

Fix checking read-only paths#157

Open
JRobertson90 wants to merge 1 commit intoscottyab:masterfrom
JRobertson90:patch-1
Open

Fix checking read-only paths#157
JRobertson90 wants to merge 1 commit intoscottyab:masterfrom
JRobertson90:patch-1

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.

2 participants