Skip to content

Commit

Permalink
assume that passwords are always unobscured
Browse files Browse the repository at this point in the history
Fixes #170
Fixes #157
Closes #159
  • Loading branch information
newhinton committed Nov 8, 2023
1 parent 06abe1e commit 9381da6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/src/main/java/ca/pkay/rcloneexplorer/Rclone.java
Original file line number Diff line number Diff line change
Expand Up @@ -480,12 +480,16 @@ private RemoteItem getRemoteType(JSONObject remotesJSON, RemoteItem remoteItem,

@Nullable
public Process configCreate(List<String> options) {
// https://rclone.org/commands/rclone_config_create/
// See the NB-comment why we need to pass --obscure.
// Otherwise long passwords fail.
options.add("--obscure");
return config("create" , options);
}

@Nullable
public Process configUpdate(List<String> options) {
return config("create" , options);
return configCreate(options);
}

public Process config(String task, List<String> options) {
Expand Down

0 comments on commit 9381da6

Please sign in to comment.