1
1

* fish.c (fish_open_archive_int): Fix missed "%s".

Этот коммит содержится в:
Andrew V. Samoilov 2004-10-28 11:24:43 +00:00
родитель 89accff625
Коммит f8223e659b
2 изменённых файлов: 6 добавлений и 3 удалений

Просмотреть файл

@ -1,3 +1,7 @@
2004-10-28 Andrew V. Samoilov <sav@bcs.zp.ua>
* fish.c (fish_open_archive_int): Fix missed "%s".
2004-10-27 Roland Illig <roland.illig@gmx.de>
* ftpfs.c (ftpfs_initconn): Replace int with socklen_t where

Просмотреть файл

@ -232,7 +232,7 @@ fish_open_archive_int (struct vfs_class *me, struct vfs_s_super *super)
print_vfs_message (_("fish: Waiting for initial line..."));
if (!vfs_s_get_line (me, SUP.sockr, answer, sizeof (answer), ':'))
ERRNOR (E_PROTO, -1);
print_vfs_message (answer);
print_vfs_message ("%s", answer);
if (strstr (answer, "assword")) {
/* Currently, this does not work. ssh reads passwords from
@ -252,8 +252,7 @@ fish_open_archive_int (struct vfs_class *me, struct vfs_s_super *super)
g_free (p);
if (op == NULL)
ERRNOR (EPERM, -1);
SUP.password = g_strdup (op);
wipe_password (op);
SUP.password = op;
}
print_vfs_message (_("fish: Sending password..."));
write (SUP.sockw, SUP.password, strlen (SUP.password));