Ok, I am finally back.
Basically, I had to setup an ssh tunnel to be able to use CVS. After 5 hours trying to get the damn thing to cvs update it was clear to me why the .es people do not like to use the gnome cvs. We really need a tunnel for .es hackers (as they have excellent connectivity to the rest of Europe, they are just routed trough a 2 byte link to the US). 1999-03-22 Miguel de Icaza <miguel@nuclecu.unam.mx> * treestore.c (process_special_dirs): Free memory here. Fix test: Skip only "." and "..", before it could skip "?.". 1999-03-22 David Martin <dmartina@mailexcite.com> * wtools.c (real_input_dialog_help): Do a strncmp with the lenght of th same translated "Password:" string. 1999-03-22 Miguel de Icaza <miguel@nuclecu.unam.mx> * glayout.c (create_new_menu_from): closedir after running. 1999-03-20 Miguel de Icaza <miguel@nuclecu.unam.mx> * gnome-file-property-dialog.c (apply_metadata_change): Fix the test for setting the icon. It was being done incorrectly and thus it was never possible to change the icon. * glayout.c (gnome_launch_mime_editor): Add mime-type-edit command to the menu: this launches mime-type-capplet 1999-03-22 David Martin <dmartina@mailexcite.com> * ftpfs.c: Internationalize the messages that are displayed as hints. 1999-03-22 Miguel de Icaza <miguel@nuclecu.unam.mx> * extfs.c (extfs_init): Fix the code here: If the key is empty or only contains a new line, C would be pointing into an invalid location.
Этот коммит содержится в:
родитель
e0db072382
Коммит
ff1a8f6a3b
@ -1,3 +1,16 @@
|
|||||||
|
1999-03-22 Miguel de Icaza <miguel@nuclecu.unam.mx>
|
||||||
|
|
||||||
|
* glayout.c (create_new_menu_from): closedir after running.
|
||||||
|
|
||||||
|
1999-03-20 Miguel de Icaza <miguel@nuclecu.unam.mx>
|
||||||
|
|
||||||
|
* gnome-file-property-dialog.c (apply_metadata_change): Fix the
|
||||||
|
test for setting the icon. It was being done incorrectly and thus
|
||||||
|
it was never possible to change the icon.
|
||||||
|
|
||||||
|
* glayout.c (gnome_launch_mime_editor): Add mime-type-edit command
|
||||||
|
to the menu: this launches mime-type-capplet
|
||||||
|
|
||||||
1999-03-23 Federico Mena Quintero <federico@nuclecu.unam.mx>
|
1999-03-23 Federico Mena Quintero <federico@nuclecu.unam.mx>
|
||||||
|
|
||||||
* gnome-file-property-dialog.c (apply_metadata_change): Fixed
|
* gnome-file-property-dialog.c (apply_metadata_change): Fixed
|
||||||
|
@ -348,6 +348,12 @@ do_desktop_rescan_devices (void)
|
|||||||
desktop_reload_icons (FALSE, 0, 0);
|
desktop_reload_icons (FALSE, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
gnome_launch_mime_editor (void)
|
||||||
|
{
|
||||||
|
my_system (EXECUTE_AS_SHELL, shell, "mime-type-capplet");
|
||||||
|
}
|
||||||
|
|
||||||
void configure_box (void);
|
void configure_box (void);
|
||||||
|
|
||||||
GtkCheckMenuItem *gnome_toggle_snap (void);
|
GtkCheckMenuItem *gnome_toggle_snap (void);
|
||||||
@ -409,6 +415,8 @@ GnomeUIInfo gnome_panel_commands_menu [] = {
|
|||||||
GNOMEUIINFO_ITEM_STOCK(N_("_Find File..."), N_("Locate files on disk"), find_cmd, GNOME_STOCK_MENU_JUMP_TO),
|
GNOMEUIINFO_ITEM_STOCK(N_("_Find File..."), N_("Locate files on disk"), find_cmd, GNOME_STOCK_MENU_JUMP_TO),
|
||||||
|
|
||||||
/* { GNOME_APP_UI_ITEM, N_("_Compare panels..."), N_("Compare two panel contents"), gnome_compare_panels },*/
|
/* { GNOME_APP_UI_ITEM, N_("_Compare panels..."), N_("Compare two panel contents"), gnome_compare_panels },*/
|
||||||
|
GNOMEUIINFO_ITEM_NONE(N_("_Edit mime types..."), N_("Edits the MIME type bindings"),
|
||||||
|
gnome_launch_mime_editor),
|
||||||
{ GNOME_APP_UI_ITEM, N_("_Run Command..."), N_("Runs a command"), run_cmd, NULL,
|
{ GNOME_APP_UI_ITEM, N_("_Run Command..."), N_("Runs a command"), run_cmd, NULL,
|
||||||
NULL, GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_OPEN, GDK_F2, 0 },
|
NULL, GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_OPEN, GDK_F2, 0 },
|
||||||
GNOMEUIINFO_ITEM_NONE(N_("_Run Command in panel..."),N_("Run a command and put the results in a panel"), gnome_external_panelize),
|
GNOMEUIINFO_ITEM_NONE(N_("_Run Command in panel..."),N_("Run a command and put the results in a panel"), gnome_external_panelize),
|
||||||
@ -582,6 +590,8 @@ create_new_menu_from (char *file, GtkWidget *shell, gint pos)
|
|||||||
}
|
}
|
||||||
g_free (file2);
|
g_free (file2);
|
||||||
}
|
}
|
||||||
|
closedir (dir);
|
||||||
|
|
||||||
return pos;
|
return pos;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
1999-03-22 David Martin <dmartina@mailexcite.com>
|
||||||
|
|
||||||
|
* es.po: Updated.
|
||||||
|
|
||||||
1999-03-19 Federico Mena Quintero <federico@nuclecu.unam.mx>
|
1999-03-19 Federico Mena Quintero <federico@nuclecu.unam.mx>
|
||||||
|
|
||||||
* no.po: Fixed missing quote.
|
* no.po: Fixed missing quote.
|
||||||
|
1300
po/es.po
1300
po/es.po
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
@ -1,3 +1,14 @@
|
|||||||
|
1999-03-22 Miguel de Icaza <miguel@nuclecu.unam.mx>
|
||||||
|
|
||||||
|
* treestore.c (process_special_dirs): Free memory here.
|
||||||
|
|
||||||
|
Fix test: Skip only "." and "..", before it could skip "?.".
|
||||||
|
|
||||||
|
1999-03-22 David Martin <dmartina@mailexcite.com>
|
||||||
|
|
||||||
|
* wtools.c (real_input_dialog_help): Do a strncmp with the lenght
|
||||||
|
of th same translated "Password:" string.
|
||||||
|
|
||||||
Mon Mar 22 02:05:28 1999 Timur Bakeyev <mc@bat.ru>
|
Mon Mar 22 02:05:28 1999 Timur Bakeyev <mc@bat.ru>
|
||||||
|
|
||||||
* screen.c (file_entry_color): Dropped. Code went to file_compute_color.
|
* screen.c (file_entry_color): Dropped. Code went to file_compute_color.
|
||||||
|
@ -703,6 +703,7 @@ process_special_dirs (GList **special_dirs, char *file)
|
|||||||
*special_dirs = g_list_prepend (*special_dirs, g_strdup (token));
|
*special_dirs = g_list_prepend (*special_dirs, g_strdup (token));
|
||||||
s = NULL;
|
s = NULL;
|
||||||
}
|
}
|
||||||
|
g_free (buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
@ -751,9 +752,11 @@ tree_store_rescan (char *dir)
|
|||||||
for (dp = mc_readdir (dirp); dp; dp = mc_readdir (dirp)){
|
for (dp = mc_readdir (dirp); dp; dp = mc_readdir (dirp)){
|
||||||
char *full_name;
|
char *full_name;
|
||||||
|
|
||||||
if ((dp->d_name [0] == '.' && dp->d_name [1] == 0)
|
if (dp->d_name [0] == '.'){
|
||||||
|
if (dp->d_name [1] == 0
|
||||||
|| (dp->d_name [1] == '.' && dp->d_name [2] == 0))
|
|| (dp->d_name [1] == '.' && dp->d_name [2] == 0))
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
full_name = concat_dir_and_file (dir, dp->d_name);
|
full_name = concat_dir_and_file (dir, dp->d_name);
|
||||||
if (mc_lstat (full_name, &buf) != -1){
|
if (mc_lstat (full_name, &buf) != -1){
|
||||||
|
@ -582,7 +582,9 @@ char *real_input_dialog_help (char *header, char *text, char *help, char *def_te
|
|||||||
len = max (strlen (header), msglen (text, &lines)) + 4;
|
len = max (strlen (header), msglen (text, &lines)) + 4;
|
||||||
len = max (len, 64);
|
len = max (len, 64);
|
||||||
|
|
||||||
if (strncmp (text, _("Password:"), strlen (_("Password"))) == 0){
|
/* Translators should take care as "Password" or its translations
|
||||||
|
are used to identify password boxes and hide characters with "*" */
|
||||||
|
if (strncmp (text, _("Password:"), strlen (_("Password:"))-1) == 0){
|
||||||
quick_widgets [INPUT_INDEX].value = 1;
|
quick_widgets [INPUT_INDEX].value = 1;
|
||||||
tk_name[3]=0;
|
tk_name[3]=0;
|
||||||
} else {
|
} else {
|
||||||
|
@ -1,3 +1,13 @@
|
|||||||
|
1999-03-22 David Martin <dmartina@mailexcite.com>
|
||||||
|
|
||||||
|
* ftpfs.c: Internationalize the messages that are displayed as
|
||||||
|
hints.
|
||||||
|
|
||||||
|
1999-03-22 Miguel de Icaza <miguel@nuclecu.unam.mx>
|
||||||
|
|
||||||
|
* extfs.c (extfs_init): Fix the code here: If the key is empty or
|
||||||
|
only contains a new line, C would be pointing into an invalid location.
|
||||||
|
|
||||||
Mon Mar 22 02:56:23 1999 Timur I. Bakeyev <mc@bat.ru>
|
Mon Mar 22 02:56:23 1999 Timur I. Bakeyev <mc@bat.ru>
|
||||||
|
|
||||||
* Makefile-mc.in: s/$(libdir)\/extfs/$(extfsdir)/
|
* Makefile-mc.in: s/$(libdir)\/extfs/$(extfsdir)/
|
||||||
|
@ -916,11 +916,15 @@ static int extfs_init (vfs *me)
|
|||||||
if (*key == '#')
|
if (*key == '#')
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if ((c = strchr( key, '\n')))
|
if ((c = strchr (key, '\n'))){
|
||||||
*c = 0;
|
*c = 0;
|
||||||
c = &key [strlen (key)-1];
|
c = &key [strlen (key)-1];
|
||||||
|
} else {
|
||||||
|
c = &key;
|
||||||
|
}
|
||||||
extfs_need_archive [extfs_no] = !(*c==':');
|
extfs_need_archive [extfs_no] = !(*c==':');
|
||||||
if (*c==':') *c = 0;
|
if (*c==':')
|
||||||
|
*c = 0;
|
||||||
if (!(*key))
|
if (!(*key))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
70
vfs/ftpfs.c
70
vfs/ftpfs.c
@ -323,7 +323,7 @@ connection_close (void *data)
|
|||||||
struct connection *bucket = data;
|
struct connection *bucket = data;
|
||||||
|
|
||||||
if (qsock (bucket) != -1){
|
if (qsock (bucket) != -1){
|
||||||
print_vfs_message ("ftpfs: Disconnecting from %s", qhost (bucket));
|
print_vfs_message (_("ftpfs: Disconnecting from %s"), qhost (bucket));
|
||||||
command(bucket, NONE, "QUIT");
|
command(bucket, NONE, "QUIT");
|
||||||
close(qsock(bucket));
|
close(qsock(bucket));
|
||||||
}
|
}
|
||||||
@ -374,7 +374,7 @@ login_server (struct connection *bucket, char *netrcpass)
|
|||||||
char *p;
|
char *p;
|
||||||
|
|
||||||
if (!bucket->password){
|
if (!bucket->password){
|
||||||
p = g_strconcat (" FTP: Password required for ", quser (bucket),
|
p = g_strconcat (_(" FTP: Password required for "), quser (bucket),
|
||||||
" ", NULL);
|
" ", NULL);
|
||||||
op = vfs_get_password (p);
|
op = vfs_get_password (p);
|
||||||
g_free (p);
|
g_free (p);
|
||||||
@ -406,7 +406,7 @@ login_server (struct connection *bucket, char *netrcpass)
|
|||||||
g_free (host);
|
g_free (host);
|
||||||
if (proxypass)
|
if (proxypass)
|
||||||
wipe_password (proxypass);
|
wipe_password (proxypass);
|
||||||
p = g_strconcat (" Proxy: Password required for ", proxyname, " ",
|
p = g_strconcat (_(" Proxy: Password required for "), proxyname, " ",
|
||||||
NULL);
|
NULL);
|
||||||
proxypass = vfs_get_password (p);
|
proxypass = vfs_get_password (p);
|
||||||
g_free (p);
|
g_free (p);
|
||||||
@ -432,19 +432,19 @@ login_server (struct connection *bucket, char *netrcpass)
|
|||||||
}
|
}
|
||||||
#if defined(HSC_PROXY)
|
#if defined(HSC_PROXY)
|
||||||
if (qproxy (bucket)){
|
if (qproxy (bucket)){
|
||||||
print_vfs_message ("ftpfs: sending proxy login name");
|
print_vfs_message (_("ftpfs: sending proxy login name"));
|
||||||
if (command (bucket, 1, "USER %s", proxyname) != CONTINUE)
|
if (command (bucket, 1, "USER %s", proxyname) != CONTINUE)
|
||||||
goto proxyfail;
|
goto proxyfail;
|
||||||
|
|
||||||
print_vfs_message ("ftpfs: sending proxy user password");
|
print_vfs_message (_("ftpfs: sending proxy user password"));
|
||||||
if (command (bucket, 1, "PASS %s", proxypass) != COMPLETE)
|
if (command (bucket, 1, "PASS %s", proxypass) != COMPLETE)
|
||||||
goto proxyfail;
|
goto proxyfail;
|
||||||
|
|
||||||
print_vfs_message ("ftpfs: proxy authentication succeeded");
|
print_vfs_message (_("ftpfs: proxy authentication succeeded"));
|
||||||
if (command (bucket, 1, "SITE %s", qhost (bucket)+1) != COMPLETE)
|
if (command (bucket, 1, "SITE %s", qhost (bucket)+1) != COMPLETE)
|
||||||
goto proxyfail;
|
goto proxyfail;
|
||||||
|
|
||||||
print_vfs_message ("ftpfs: connected to %s", qhost (bucket)+1);
|
print_vfs_message (_("ftpfs: connected to %s"), qhost (bucket)+1);
|
||||||
if (0) {
|
if (0) {
|
||||||
proxyfail:
|
proxyfail:
|
||||||
bucket->failed_on_login = 1;
|
bucket->failed_on_login = 1;
|
||||||
@ -461,17 +461,17 @@ login_server (struct connection *bucket, char *netrcpass)
|
|||||||
g_free (proxyname);
|
g_free (proxyname);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
print_vfs_message ("ftpfs: sending login name");
|
print_vfs_message (_("ftpfs: sending login name"));
|
||||||
code = command (bucket, WAIT_REPLY, "USER %s", name);
|
code = command (bucket, WAIT_REPLY, "USER %s", name);
|
||||||
|
|
||||||
switch (code){
|
switch (code){
|
||||||
case CONTINUE:
|
case CONTINUE:
|
||||||
print_vfs_message ("ftpfs: sending user password");
|
print_vfs_message (_("ftpfs: sending user password"));
|
||||||
if (command (bucket, WAIT_REPLY, "PASS %s", pass) != COMPLETE)
|
if (command (bucket, WAIT_REPLY, "PASS %s", pass) != COMPLETE)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case COMPLETE:
|
case COMPLETE:
|
||||||
print_vfs_message ("ftpfs: logged in");
|
print_vfs_message (_("ftpfs: logged in"));
|
||||||
wipe_password (pass);
|
wipe_password (pass);
|
||||||
g_free (name);
|
g_free (name);
|
||||||
return 1;
|
return 1;
|
||||||
@ -486,7 +486,7 @@ login_server (struct connection *bucket, char *netrcpass)
|
|||||||
goto login_fail;
|
goto login_fail;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
print_vfs_message ("ftpfs: Login incorrect for user %s ", quser (bucket));
|
print_vfs_message (_("ftpfs: Login incorrect for user %s "), quser (bucket));
|
||||||
login_fail:
|
login_fail:
|
||||||
wipe_password (pass);
|
wipe_password (pass);
|
||||||
g_free (name);
|
g_free (name);
|
||||||
@ -647,7 +647,7 @@ ftpfs_open_socket (struct connection *bucket)
|
|||||||
host = qhost (bucket);
|
host = qhost (bucket);
|
||||||
|
|
||||||
if (!host || !*host){
|
if (!host || !*host){
|
||||||
print_vfs_message ("ftpfs: Invalid host name.");
|
print_vfs_message (_("ftpfs: Invalid host name."));
|
||||||
my_errno = EINVAL;
|
my_errno = EINVAL;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
@ -667,7 +667,7 @@ ftpfs_open_socket (struct connection *bucket)
|
|||||||
else {
|
else {
|
||||||
hp = gethostbyname (host);
|
hp = gethostbyname (host);
|
||||||
if (hp == NULL){
|
if (hp == NULL){
|
||||||
print_vfs_message ("ftpfs: Invalid host address.");
|
print_vfs_message (_("ftpfs: Invalid host address."));
|
||||||
my_errno = EINVAL;
|
my_errno = EINVAL;
|
||||||
if (free_host)
|
if (free_host)
|
||||||
g_free (host);
|
g_free (host);
|
||||||
@ -692,7 +692,7 @@ ftpfs_open_socket (struct connection *bucket)
|
|||||||
}
|
}
|
||||||
setup_source_route (my_socket, server_address.sin_addr.s_addr);
|
setup_source_route (my_socket, server_address.sin_addr.s_addr);
|
||||||
|
|
||||||
print_vfs_message ("ftpfs: making connection to %s", host);
|
print_vfs_message (_("ftpfs: making connection to %s"), host);
|
||||||
if (free_host)
|
if (free_host)
|
||||||
g_free (host);
|
g_free (host);
|
||||||
|
|
||||||
@ -702,9 +702,9 @@ ftpfs_open_socket (struct connection *bucket)
|
|||||||
sizeof (server_address)) < 0){
|
sizeof (server_address)) < 0){
|
||||||
my_errno = errno;
|
my_errno = errno;
|
||||||
if (errno == EINTR && got_interrupt ())
|
if (errno == EINTR && got_interrupt ())
|
||||||
print_vfs_message ("ftpfs: connection interrupted by user");
|
print_vfs_message (_("ftpfs: connection interrupted by user"));
|
||||||
else
|
else
|
||||||
print_vfs_message ("ftpfs: connection to server failed: %s",
|
print_vfs_message (_("ftpfs: connection to server failed: %s"),
|
||||||
unix_error_string(errno));
|
unix_error_string(errno));
|
||||||
disable_interrupt_key();
|
disable_interrupt_key();
|
||||||
close (my_socket);
|
close (my_socket);
|
||||||
@ -788,7 +788,7 @@ open_command_connection (char *host, char *user, int port, char *netrcpass)
|
|||||||
retry_seconds = ftpfs_retry_seconds;
|
retry_seconds = ftpfs_retry_seconds;
|
||||||
enable_interrupt_key ();
|
enable_interrupt_key ();
|
||||||
for (count_down = retry_seconds; count_down; count_down--){
|
for (count_down = retry_seconds; count_down; count_down--){
|
||||||
print_vfs_message ("Waiting to retry... %d (Control-C to cancel)", count_down);
|
print_vfs_message (_("Waiting to retry... %d (Control-C to cancel)"), count_down);
|
||||||
sleep (1);
|
sleep (1);
|
||||||
if (got_interrupt ()){
|
if (got_interrupt ()){
|
||||||
/* my_errno = E; */
|
/* my_errno = E; */
|
||||||
@ -982,7 +982,7 @@ initconn (struct connection *bucket)
|
|||||||
|
|
||||||
if ((c = setup_passive (data, bucket, &data_addr)))
|
if ((c = setup_passive (data, bucket, &data_addr)))
|
||||||
return data;
|
return data;
|
||||||
print_vfs_message("ftpfs: could not setup passive mode for source routing");
|
print_vfs_message(_("ftpfs: could not setup passive mode for source routing"));
|
||||||
bucket->use_source_route = 0;
|
bucket->use_source_route = 0;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
@ -992,7 +992,7 @@ initconn (struct connection *bucket)
|
|||||||
|
|
||||||
bucket->use_source_route = 0;
|
bucket->use_source_route = 0;
|
||||||
bucket->use_passive_connection = 0;
|
bucket->use_passive_connection = 0;
|
||||||
print_vfs_message ("ftpfs: could not setup passive mode");
|
print_vfs_message (_("ftpfs: could not setup passive mode"));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
/* If passive setup fails, fallback to active connections */
|
/* If passive setup fails, fallback to active connections */
|
||||||
@ -1063,14 +1063,14 @@ my_abort (struct connection *bucket, int dsock)
|
|||||||
fd_set mask;
|
fd_set mask;
|
||||||
char buf[1024];
|
char buf[1024];
|
||||||
|
|
||||||
print_vfs_message("ftpfs: aborting transfer.");
|
print_vfs_message(_("ftpfs: aborting transfer."));
|
||||||
if (send(qsock(bucket), ipbuf, sizeof(ipbuf), MSG_OOB) != sizeof(ipbuf)) {
|
if (send(qsock(bucket), ipbuf, sizeof(ipbuf), MSG_OOB) != sizeof(ipbuf)) {
|
||||||
print_vfs_message("ftpfs: abort error: %s", unix_error_string(errno));
|
print_vfs_message(_("ftpfs: abort error: %s"), unix_error_string(errno));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (command(bucket, NONE, "%cABOR", DM) != COMPLETE){
|
if (command(bucket, NONE, "%cABOR", DM) != COMPLETE){
|
||||||
print_vfs_message ("ftpfs: abort failed");
|
print_vfs_message (_("ftpfs: abort failed"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (dsock != -1) {
|
if (dsock != -1) {
|
||||||
@ -1156,7 +1156,7 @@ resolve_symlink_with_ls_options(struct connection *bucket, struct dir *dir)
|
|||||||
dir->symlink_status = FTPFS_RESOLVED_SYMLINKS;
|
dir->symlink_status = FTPFS_RESOLVED_SYMLINKS;
|
||||||
if (strchr (dir->remote_path, ' ')) {
|
if (strchr (dir->remote_path, ' ')) {
|
||||||
if (ftpfs_chdir_internal (bucket, dir->remote_path) != COMPLETE) {
|
if (ftpfs_chdir_internal (bucket, dir->remote_path) != COMPLETE) {
|
||||||
print_vfs_message("ftpfs: CWD failed.");
|
print_vfs_message(_("ftpfs: CWD failed."));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
sock = open_data_connection (bucket, "LIST -lLa", ".", TYPE_ASCII, 0);
|
sock = open_data_connection (bucket, "LIST -lLa", ".", TYPE_ASCII, 0);
|
||||||
@ -1166,14 +1166,14 @@ resolve_symlink_with_ls_options(struct connection *bucket, struct dir *dir)
|
|||||||
dir->remote_path, TYPE_ASCII, 0);
|
dir->remote_path, TYPE_ASCII, 0);
|
||||||
|
|
||||||
if (sock == -1) {
|
if (sock == -1) {
|
||||||
print_vfs_message("ftpfs: couldn't resolve symlink");
|
print_vfs_message(_("ftpfs: couldn't resolve symlink"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
fp = fdopen(sock, "r");
|
fp = fdopen(sock, "r");
|
||||||
if (fp == NULL) {
|
if (fp == NULL) {
|
||||||
close(sock);
|
close(sock);
|
||||||
print_vfs_message("ftpfs: couldn't resolve symlink");
|
print_vfs_message(_("ftpfs: couldn't resolve symlink"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
enable_interrupt_key();
|
enable_interrupt_key();
|
||||||
@ -1218,7 +1218,7 @@ done:
|
|||||||
static void
|
static void
|
||||||
resolve_symlink(struct connection *bucket, struct dir *dir)
|
resolve_symlink(struct connection *bucket, struct dir *dir)
|
||||||
{
|
{
|
||||||
print_vfs_message("Resolving symlink...");
|
print_vfs_message(_("Resolving symlink..."));
|
||||||
|
|
||||||
if (bucket->strict_rfc959_list_cmd)
|
if (bucket->strict_rfc959_list_cmd)
|
||||||
resolve_symlink_without_ls_options(bucket, dir);
|
resolve_symlink_without_ls_options(bucket, dir);
|
||||||
@ -1321,16 +1321,16 @@ retrieve_dir(struct connection *bucket, char *remote_path, int resolve_symlinks)
|
|||||||
|
|
||||||
has_symlinks = 0;
|
has_symlinks = 0;
|
||||||
if (bucket->strict_rfc959_list_cmd)
|
if (bucket->strict_rfc959_list_cmd)
|
||||||
print_vfs_message("ftpfs: Reading FTP directory %s... (don't use UNIX ls options)", remote_path);
|
print_vfs_message(_("ftpfs: Reading FTP directory %s... (don't use UNIX ls options)"), remote_path);
|
||||||
else
|
else
|
||||||
print_vfs_message("ftpfs: Reading FTP directory %s...", remote_path);
|
print_vfs_message(_("ftpfs: Reading FTP directory %s..."), remote_path);
|
||||||
if (has_spaces || bucket->strict_rfc959_list_cmd || ftpfs_first_cd_then_ls) {
|
if (has_spaces || bucket->strict_rfc959_list_cmd || ftpfs_first_cd_then_ls) {
|
||||||
char *p;
|
char *p;
|
||||||
|
|
||||||
p = translate_path (bucket, remote_path);
|
p = translate_path (bucket, remote_path);
|
||||||
if (ftpfs_chdir_internal (bucket, p) != COMPLETE) {
|
if (ftpfs_chdir_internal (bucket, p) != COMPLETE) {
|
||||||
my_errno = ENOENT;
|
my_errno = ENOENT;
|
||||||
print_vfs_message("ftpfs: CWD failed.");
|
print_vfs_message(_("ftpfs: CWD failed."));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1342,7 +1342,7 @@ retrieve_dir(struct connection *bucket, char *remote_path, int resolve_symlinks)
|
|||||||
if (dcache == NULL) {
|
if (dcache == NULL) {
|
||||||
my_errno = ENOMEM;
|
my_errno = ENOMEM;
|
||||||
linklist_destroy(file_list, NULL);
|
linklist_destroy(file_list, NULL);
|
||||||
print_vfs_message("ftpfs: FAIL");
|
print_vfs_message(_("ftpfs: FAIL"));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
gettimeofday(&dcache->timestamp, NULL);
|
gettimeofday(&dcache->timestamp, NULL);
|
||||||
@ -1433,7 +1433,7 @@ retrieve_dir(struct connection *bucket, char *remote_path, int resolve_symlinks)
|
|||||||
}
|
}
|
||||||
if (got_intr){
|
if (got_intr){
|
||||||
disable_interrupt_key();
|
disable_interrupt_key();
|
||||||
print_vfs_message("ftpfs: reading FTP directory interrupt by user");
|
print_vfs_message(_("ftpfs: reading FTP directory interrupt by user"));
|
||||||
#ifdef OLD_READ
|
#ifdef OLD_READ
|
||||||
my_abort(bucket, fileno(fp));
|
my_abort(bucket, fileno(fp));
|
||||||
#else
|
#else
|
||||||
@ -1462,7 +1462,7 @@ retrieve_dir(struct connection *bucket, char *remote_path, int resolve_symlinks)
|
|||||||
else
|
else
|
||||||
dcache->symlink_status = FTPFS_UNRESOLVED_SYMLINKS;
|
dcache->symlink_status = FTPFS_UNRESOLVED_SYMLINKS;
|
||||||
}
|
}
|
||||||
print_vfs_message("ftpfs: got listing");
|
print_vfs_message(_("ftpfs: got listing"));
|
||||||
return dcache;
|
return dcache;
|
||||||
error_1:
|
error_1:
|
||||||
disable_interrupt_key();
|
disable_interrupt_key();
|
||||||
@ -1475,7 +1475,7 @@ error_3:
|
|||||||
g_free(dcache->remote_path);
|
g_free(dcache->remote_path);
|
||||||
g_free(dcache);
|
g_free(dcache);
|
||||||
linklist_destroy(file_list, direntry_destructor);
|
linklist_destroy(file_list, direntry_destructor);
|
||||||
print_vfs_message("ftpfs: failed");
|
print_vfs_message(_("ftpfs: failed"));
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
fallback:
|
fallback:
|
||||||
@ -1492,7 +1492,7 @@ fallback:
|
|||||||
g_free(dcache->remote_path);
|
g_free(dcache->remote_path);
|
||||||
g_free(dcache);
|
g_free(dcache);
|
||||||
linklist_destroy(file_list, direntry_destructor);
|
linklist_destroy(file_list, direntry_destructor);
|
||||||
print_vfs_message("ftpfs: failed; nowhere to fallback to");
|
print_vfs_message(_("ftpfs: failed; nowhere to fallback to"));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1556,7 +1556,7 @@ store_file(struct direntry *fe)
|
|||||||
goto error_return;
|
goto error_return;
|
||||||
}
|
}
|
||||||
total += n;
|
total += n;
|
||||||
print_vfs_message("ftpfs: storing file %d (%d)",
|
print_vfs_message(_("ftpfs: storing file %d (%d)"),
|
||||||
total, s.st_size);
|
total, s.st_size);
|
||||||
}
|
}
|
||||||
disable_interrupt_key();
|
disable_interrupt_key();
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user