4.5.99a (mc-2002-04-26-03) .netrc patch
Thomas Zajic
zlatko at gmx.at
Tue Apr 30 23:50:20 UTC 2002
* Thomas Zajic <zlatko at gmx.at>, 29/04/2002, 00:24
> Done. I tried to keep changes to the original code at a minimum, and
> #ifdef'd the stuff I added where possible. [...]
Enclosed add-on patch fixes a segfault (due to an uninitialized pointer)
that occured randomly when using ~/.netrc, not having a [user]@ part in
the URL, and issuing certain FTP commands (eg. DELE). Ooops, my bad ...
This one is to be applied on top of my original *-netrc.diff.
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-new/vfs/ftpfs.c mc-4.5.99a/vfs/ftpfs.c
--- mc-4.5.99a-new/vfs/ftpfs.c Wed May 1 01:34:51 2002
+++ mc-4.5.99a/vfs/ftpfs.c Wed May 1 01:31:00 2002
@@ -829,7 +829,7 @@
{
char *host, *user;
#ifdef USE_NETRC
- char *pass;
+ char *pass = NULL;
#endif
int port;
-------------- 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/20020501/cc8ee8c9/attachment.asc>
More information about the mc-devel
mailing list