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 typo in word 'writable' #110

Merged
merged 1 commit into from
Dec 9, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rootbeerlib/src/main/java/com/scottyab/rootbeer/Const.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ private Const() throws InstantiationException {
};


public static final String[] pathsThatShouldNotBeWrtiable = {
public static final String[] pathsThatShouldNotBeWritable = {
"/system",
"/system/bin",
"/system/sbin",
Expand Down
4 changes: 2 additions & 2 deletions rootbeerlib/src/main/java/com/scottyab/rootbeer/RootBeer.java
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ public boolean checkForDangerousProps() {
}

/**
* When you're root you can change the permissions on common system directories, this method checks if any of these patha Const.pathsThatShouldNotBeWrtiable are writable.
* When you're root you can change the permissions on common system directories, this method checks if any of these patha Const.pathsThatShouldNotBeWritable are writable.
* @return true if one of the dir is writable
*/
public boolean checkForRWPaths() {
Expand Down Expand Up @@ -310,7 +310,7 @@ public boolean checkForRWPaths() {
String mountPoint = args[1];
String mountOptions = args[3];

for(String pathToCheck: Const.pathsThatShouldNotBeWrtiable) {
for(String pathToCheck: Const.pathsThatShouldNotBeWritable) {
if (mountPoint.equalsIgnoreCase(pathToCheck)) {

// Split options out and compare against "rw" to avoid false positives
Expand Down