2000-01-18 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
* ftpfs.c: cosmetic fixes + killed ugly infinite loop, patch from Andrew V. Samoilov
Этот коммит содержится в:
родитель
9d5f71a8de
Коммит
dcb64cee6d
@ -1,3 +1,13 @@
|
|||||||
|
2000-01-18 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
|
||||||
|
|
||||||
|
* ftpfs.c: cosmetic fixes + killed ugly infinite loop, patch
|
||||||
|
from Andrew V. Samoilov
|
||||||
|
|
||||||
|
2000-01-13 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
|
||||||
|
|
||||||
|
* extfs.c (extfs_chdir): removed unneeded statment, plus applied
|
||||||
|
cosmetics fixes from Andrew V. Samoilov
|
||||||
|
|
||||||
2000-01-02 Martin Bialasinski <martin@internet-treff.uni-koeln.de>
|
2000-01-02 Martin Bialasinski <martin@internet-treff.uni-koeln.de>
|
||||||
|
|
||||||
* extfs/deb.in: Change to the deb vfs. tar has changed, and
|
* extfs/deb.in: Change to the deb vfs. tar has changed, and
|
||||||
|
21
vfs/ftpfs.c
21
vfs/ftpfs.c
@ -6,6 +6,7 @@
|
|||||||
1995, 1996, 1997 Miguel de Icaza
|
1995, 1996, 1997 Miguel de Icaza
|
||||||
1997 Norbert Warmuth
|
1997 Norbert Warmuth
|
||||||
1998 Pavel Machek
|
1998 Pavel Machek
|
||||||
|
|
||||||
$Id$
|
$Id$
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or
|
||||||
@ -937,7 +938,7 @@ open_data_connection (vfs *me, vfs_s_super *super, char *cmd, char *remote,
|
|||||||
} else
|
} else
|
||||||
j = command (me, super, WAIT_REPLY, "%s", cmd);
|
j = command (me, super, WAIT_REPLY, "%s", cmd);
|
||||||
if (j != PRELIM)
|
if (j != PRELIM)
|
||||||
ERRNOR (EPERM, -1);
|
ERRNOR (EPERM, -1);
|
||||||
enable_interrupt_key();
|
enable_interrupt_key();
|
||||||
if (SUP.use_passive_connection)
|
if (SUP.use_passive_connection)
|
||||||
data = s;
|
data = s;
|
||||||
@ -1220,7 +1221,6 @@ dir_load(vfs *me, vfs_s_inode *dir, char *remote_path)
|
|||||||
}
|
}
|
||||||
|
|
||||||
vfs_s_insert_entry(me, dir, ent);
|
vfs_s_insert_entry(me, dir, ent);
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
close(sock);
|
close(sock);
|
||||||
@ -1452,7 +1452,6 @@ ftpfs_init_passwd(void)
|
|||||||
else
|
else
|
||||||
ftpfs_anonymous_passwd = g_strconcat (p, "@", hostname, NULL);
|
ftpfs_anonymous_passwd = g_strconcat (p, "@", hostname, NULL);
|
||||||
endpwent ();
|
endpwent ();
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ftpfs_chmod (vfs *me, char *path, int mode)
|
static int ftpfs_chmod (vfs *me, char *path, int mode)
|
||||||
@ -1691,9 +1690,8 @@ static int netrc_next (void)
|
|||||||
{
|
{
|
||||||
char *p;
|
char *p;
|
||||||
int i;
|
int i;
|
||||||
static char *keywords [] = { "default", "machine",
|
static const char const * keywords [] = { "default", "machine",
|
||||||
"login", "password", "passwd",
|
"login", "password", "passwd", "account", "macdef" };
|
||||||
"account", "macdef" };
|
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
netrcp = skip_separators (netrcp);
|
netrcp = skip_separators (netrcp);
|
||||||
@ -1812,15 +1810,14 @@ int lookup_netrc (char *host, char **login, char **pass)
|
|||||||
}
|
}
|
||||||
netrc_next ();
|
netrc_next ();
|
||||||
break;
|
break;
|
||||||
case 7:
|
case 7: /* macdef: skip it */
|
||||||
for (;;) {
|
do {
|
||||||
while (*netrcp != '\n' && *netrcp);
|
while (*netrcp && *netrcp != '\n')
|
||||||
|
netrcp++;
|
||||||
if (*netrcp != '\n')
|
if (*netrcp != '\n')
|
||||||
break;
|
break;
|
||||||
netrcp++;
|
netrcp++;
|
||||||
if (*netrcp == '\n' || !*netrcp)
|
} while (*netrcp && *netrcp != '\n')
|
||||||
break;
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (keyword == 20)
|
if (keyword == 20)
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user