mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
client: Fix connection to a remote with password in it.
The password needs to be cleaned after we processed the uri. Thanks to Patrick Buergi.
This commit is contained in:
parent
fc2b860022
commit
11b539088e
@ -206,6 +206,16 @@ int main(int argc, char **argv) {
|
||||
print_help();
|
||||
}
|
||||
|
||||
if (arguments.debug_level) {
|
||||
csync_set_log_level(arguments.debug_level);
|
||||
}
|
||||
|
||||
if (csync_create(&csync, argv[optind], argv[optind+1]) < 0) {
|
||||
fprintf(stderr, "csync_create: failed\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Protect password from ps listing
|
||||
* Find and replace :password@ by :********@
|
||||
@ -223,15 +233,6 @@ int main(int argc, char **argv) {
|
||||
}
|
||||
}
|
||||
|
||||
if (arguments.debug_level) {
|
||||
csync_set_log_level(arguments.debug_level);
|
||||
}
|
||||
|
||||
if (csync_create(&csync, argv[optind], argv[optind+1]) < 0) {
|
||||
fprintf(stderr, "csync_create: failed\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
csync_set_auth_callback(csync, csync_getpass);
|
||||
|
||||
if (arguments.disable_statedb) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user