summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2017-08-04 00:37:29 -0500
committerSamuel Holland <samuel@sholland.org>2017-08-04 00:37:29 -0500
commit1e0a437c3bbeb5b9c503ebacfd35ecc6d4bf827c (patch)
treed1baedf9d71acbf09aea3c4b6419f2ef465d7077
parente718a7c03cf1962cd1e4a4ebd79e6dc800d67aa2 (diff)
RootShell: rename SETUP to SETUP_TEMPLATE
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--app/src/main/java/com/wireguard/android/RootShell.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/com/wireguard/android/RootShell.java b/app/src/main/java/com/wireguard/android/RootShell.java
index 096ff046..c060c967 100644
--- a/app/src/main/java/com/wireguard/android/RootShell.java
+++ b/app/src/main/java/com/wireguard/android/RootShell.java
@@ -20,14 +20,14 @@ class RootShell {
* Setup commands that are run at the beginning of each root shell. The trap command ensures
* access to the return value of the last command, since su itself always exits with 0.
*/
- private static final String SETUP = "export TMPDIR=%s\ntrap 'echo $?' EXIT\n";
+ private static final String SETUP_TEMPLATE = "export TMPDIR=%s\ntrap 'echo $?' EXIT\n";
private static final String TAG = "RootShell";
private final byte setupCommands[];
RootShell(Context context) {
final String tmpdir = context.getCacheDir().getPath();
- setupCommands = String.format(SETUP, tmpdir).getBytes(StandardCharsets.UTF_8);
+ setupCommands = String.format(SETUP_TEMPLATE, tmpdir).getBytes(StandardCharsets.UTF_8);
}
/**