From 28d42b00f3becabad508ba066ee17fd4272d0922 Mon Sep 17 00:00:00 2001 From: Jephte Clain Date: Wed, 22 Sep 2021 22:47:03 +0400 Subject: [PATCH] =?UTF-8?q?authftp:=20support=20des=20mots=20de=20passe=20?= =?UTF-8?q?avec=20des=20caract=C3=A8res=20sp=C3=A9ciaux?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- authftp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/authftp b/authftp index cefa98b..ad788b8 100755 --- a/authftp +++ b/authftp @@ -84,6 +84,7 @@ read_value -i "Entrez le chemin" path "$4" N if [ -n "$lftp" ]; then if [ -n "$noproxy" ]; then + export LFTP_PASSWORD="$password" if [ -n "$sftp" ]; then url="sftp://$host/$path" hostkeyfailed_apropos "$login@$host" @@ -92,12 +93,13 @@ if [ -n "$lftp" ]; then fi exec lftp "${options[@]}" -e "\ set ssl:verify-certificate $verify_certificate -open -u $login,$password $url" +open -u $login --env-password $url" else + export LFTP_PASSWORD="${password}@${my_password}" url="ftp://$AUTHFTP_PROXY_HOST/$path" exec lftp "${options[@]}" -e "\ set ssl:verify-certificate $verify_certificate -open -u ${login}@${my_login}@${host},${password}@${my_password} $url" +open -u ${login}@${my_login}@${host} --env-password $url" fi else if [ -n "$noproxy" ]; then