lftp icon indicating copy to clipboard operation
lftp copied to clipboard

passphrase with spaces and punctuation in .netrc not working

Open manfredlotz opened this issue 4 years ago • 4 comments

This is Fedora 31 and lftp 4.9.0

If I have a passphrase like this in ~/.netrc

machine blabla.com
  login myuser
  password Many is more than one.

it doesn't work.

Is there a way to make it work? Thank you.

manfredlotz avatar Apr 09 '20 09:04 manfredlotz

You can replace spaces with \040

lavv17 avatar Jun 05 '20 11:06 lavv17

Successfully tested with Fedora 32 and lftp 4.9.1. Thanks a lot.

But what does Next minor version mean when your suggestion works ok with 4.9.1?

manfredlotz avatar Jun 06 '20 16:06 manfredlotz

I think double quotes should be also supported, I plan to implement them.

On Sat, 6 Jun 2020 at 19:57, manfredlotz [email protected] wrote:

Successfully tested with Fedora 32 and lftp 4.9.1. Thanks a lot.

But what does Next minor version mean when your suggestion works ok with 4.9.1?

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/lavv17/lftp/issues/585#issuecomment-640089307, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHLWXERUY4CKOGQFMWNFA3RVJYOBANCNFSM4MESYKZA .

-- Alexander.

lavv17 avatar Jun 06 '20 21:06 lavv17

Aah, understand. Thanks.

I agree it would be good to support double quotes. Would it mean you support a double quote inside a password (aka. passphrase) as \"? If yes then it would make sense to support single quotes as well where you would accept a single quote inside a password (phrase) as \'.

manfredlotz avatar Jun 07 '20 15:06 manfredlotz