Hi,

since some providers continue to offer users ftp accounts in the form of email addresses, I could not mirror archives using something like:

$ tla make-archive --mirror [EMAIL PROTECTED] --listing ftp://[EMAIL PROTECTED]:[EMAIL PROTECTED]/public/\{archives\}/2005

A quick fix is to modify pfs-ftp.c:130 from:
  hostname = str_chr_index (host, '@');
to
  hostname = str_chr_rindex (host, '@');

This would allow all of us unlucky users to login to our servers.
I tested it and it works (at least for me).

A similar fix could be used also for sftp, if necessary.

I can't help thinking that ~/.netrc is the best way to go, though:
easily parseable, allows to use any char you want in usernames and passwords, and doesn't leave potentially sensible infos in .bash_history or as tla commands output. What do you think?

Regards,
--
Matteo Settenvini
FSF Associated Member
Email : [EMAIL PROTECTED]


-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS d--(-) s+:- a-- C++ UL+++
P?>++ L+++>$ E+>+++ W+++ N++ o?
w--- O- M++ PS++ PE- Y+>++
PGP+++ t+ 5 X- R tv-- b+++ DI+
D++ G++ e h+ r-- y?
------END GEEK CODE BLOCK------


_______________________________________________
Gnu-arch-users mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnu-arch-users

GNU arch home page:
http://savannah.gnu.org/projects/gnu-arch/

Reply via email to