4.5.99a (mc-2002-04-26-03) .netrc patch
Thomas Zajic
zlatko at gmx.at
Fri Apr 26 17:08:35 UTC 2002
Hi there,
Enclosed you'll find a patch that enables .netrc support for mc-4.5.99a
(the mc-2002-04-26-03 version).
IIRC, .netrc support has been there since mc-4.1.x days (or at least it
was available via ./configure), but it never quite worked for me. Today
I finally got off my lazy ass and fixed it. :-)
Looking at the rather trivial patch, I'm wondering - am I the only one
using .netrc these days? I can't believe nobody else has noticed this
before. Just curious ...
Bye,
Thomas
--
=-------------------------------------------------------------------------=
- Thomas "ZlatkO" Zajic <zlatko at gmx.at> Linux-2.4.18 & Mutt-1.2.5.1i -
- "It is not easy to cut through a human head with a hacksaw." (M. C.) -
=-------------------------------------------------------------------------=
-------------- next part --------------
diff -ur mc-4.5.99a-orig/vfs/ftpfs.c mc-4.5.99a/vfs/ftpfs.c
--- mc-4.5.99a-orig/vfs/ftpfs.c Fri Feb 8 15:25:59 2002
+++ mc-4.5.99a/vfs/ftpfs.c Fri Apr 26 15:08:05 2002
@@ -387,6 +387,10 @@
int anon = 0;
char reply_string[BUF_MEDIUM];
+#ifdef USE_NETRC
+ lookup_netrc(SUP.host, &SUP.user, &netrcpass);
+#endif
+
SUP.isbinary = TYPE_UNKNOWN;
if (netrcpass)
op = g_strdup (netrcpass);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20020426/1ca76d3a/attachment.asc>
More information about the mc-devel
mailing list