Skip to content

Commit

Permalink
Fixed typo in word 'writable' (scottyab#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlizzedRu authored and scottyab committed Dec 9, 2019
1 parent 5ad3a24 commit 59c387e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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

0 comments on commit 59c387e

Please sign in to comment.