Commit Graph

9415 Commits

Author SHA1 Message Date
Yury V. Zaytsev
cb0d7a36ff Ticket #1867: fish: omit '-l' parameter for userless URLs.
Add the user name to the ssh command line only if it's not the same as
the local logged-in user. OpenSSH will take it as a default value
anyway, but otherwise we'll override ~/.ssh/config settings which might
be not what the user wants.

* Factored out vfs_get_local_username()
* Moved default-user detection to fish subsystem (URL_USE_ANONYMOUS)
* Slight modifications to the comments and wording
2009-12-25 18:57:27 +03:00
Sergei Trofimovich
8abe72112a vfs: ftp: fix build breakage on absent CANON_PATH_RMDBLDT
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-12-25 17:18:50 +02:00
Mikhail S. Pobolovets
45642c5110 Cabal syntax file introduced.
Cabal is build system used in the Haskell world.
2009-12-25 16:28:44 +02:00
Slava Zanko
f780c31e56 Merge branch '1691_debian_man_patches'
* 1691_debian_man_patches:
  Fix for ticket #1691:
2009-12-25 15:56:10 +02:00
Slava Zanko
e8b41315ac Merge branch '1828_ftpfs_improved_symlink_handling'
* 1828_ftpfs_improved_symlink_handling:
  Ticket #1828: Improved symlink handling in ftpfs
2009-12-25 15:54:43 +02:00
Slava Zanko
4f36622725 Ticket #1828: Improved symlink handling in ftpfs
Originally from: http://mail.gnome.org/archives/mc-devel/2005-April/msg00035.html

The routines `vfs_s_find_entry_linear()' and `vfs_s_find_entry_tree()'
call `canonicalize_pathname()' on entry. This routine eats `..' path
components in certain cases. In case of ftpfs this is not desired -
the path should be kept as is since the code in direntry.c doesn't have
enough knowledge of the directory structure on the remote end.

Assume that
there is a path like this on the remote server

    /path1/path2/path3

The `path2' component is a symlink to some directory and `path3' is a
symlink stored in `path2' which is relative to `path2' i.e.

path2

    path3 -> ../some/other/path

Now, the code in direntry.c will determine that `path3' is a symlink and
will try to resolve (vfs_s_resolve_symlink) it by passing the following path

    /path1/path2/../some/other/path

to `vfs_s_find_entry_linear' . As I've said above this routine calls
`canonicalize_pathname' on entry which will modify the path like this:

    /path1/some/other/path

Now this is clearly wrong since `path2' is a symlink and it should be
resolved first. In the case of ftpfs the code in direntry.c doesn't have
enough knowledge about physycal directory layout on the remote filesystem
so it shouldn't try to canonicalize the path. The path should be left as
is and passed to the remote end for processing.

Fix issue:
Changed function canonicalize_pathname (as fact, renamed to custom_canonicalize_pathname)
In this function added ability to partial canonicalize of pathname.
And some functions from vfs/direntry.c calls custom_canonicalize_pathname without
removal of '..' stuff.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-12-25 15:53:48 +02:00
Yury V. Zaytsev
714a5bcdaf Fix for ticket #1691:
Set of patches that correct minor mistakes and mistypes in the man files
from Denis Briand. Thanks!

Fixes suggested by Slava Zanko and Andrew Borodin: always use
@sysconfdir@/mc instead of hardcoded /etc/mc for configuration pathes in
mans.
2009-12-25 14:33:54 +01:00
Ilia Maslakov
00b94eec5d Merge branch '1724_missmatched_macro_hotkeys'
* 1724_missmatched_macro_hotkeys:
  Ticket #1724 (mismatched hotkeys)
2009-12-25 15:11:41 +03:00
Ilia Maslakov
b03b234085 Ticket #1724 (mismatched hotkeys)
fixed mismatched hotkeys EditBeginRecordMacro, EditEndRecordMacro

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2009-12-25 15:10:23 +03:00
Slava Zanko
dedb6a9a44 Merge branch '1663_save_panels_state'
* 1663_save_panels_state:
  Ticket #1663: Panels state saves and restores despite disabled 'Auto save setup'
2009-12-25 13:23:56 +02:00
Andrew Borodin
52ba225bc5 Merge branch '1876_sigint_signal_handling'
* 1876_sigint_signal_handling:
  Ticket #1876: use Ctrl-g key to generate SIGINT signal.
2009-12-25 12:01:35 +00:00
Andrew Borodin
a20ebb3818 Ticket #1876: use Ctrl-g key to generate SIGINT signal.
Ctrl-g instead of Ctrl-c is used now to generate SIGINT signal.
SIGINT signal generating for MC/NCurses library is enabled now.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-12-25 12:01:18 +00:00
Slava Zanko
4f88a84526 Ticket #1663: Panels state saves and restores despite disabled 'Auto save setup'
Added option 'auto_save_setup_panels' into [Midnight-Commander] section of ini-file.
If no specified, value of this option is equal to value of 'auto_save_setup' option.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-12-25 13:23:05 +02:00
Enrico Weigelt, metux IT service
8cfffc5bfa Merge remote branch 'mco/272_extfs_amazon_s3'
* mco/272_extfs_amazon_s3:
  Ticket #272: Extfs: added S3 backend by Jakob Kemi
2009-12-24 22:29:01 +01:00
Jakob Kemi
6908e6fc48 Ticket #272: Extfs: added S3 backend by Jakob Kemi 2009-12-24 22:26:14 +01:00
Andrew Borodin
48aaef13d8 Merge branch '1883_winput_handle_0xff_char'
* 1883_winput_handle_0xff_char:
  Ticket #1883: fixed handling of 0xff character in WInput widget.
2009-12-24 22:18:30 +03:00
Andrew Borodin
bce9bc5027 Ticket #1883: fixed handling of 0xff character in WInput widget.
The 0xff character is valid character in CP1251 codepage,
therefore the proper unsigned extension of char to int
is required in stuff() function to avoid the 0xff as -1
interpretation in handle_char() function.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-12-24 22:17:31 +03:00
Vsevolod Novikov
bd67eb857c updated python.syntax
Author: Vsevolod Novikov <nnseva@mail.ru>

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2009-12-24 14:41:00 +03:00
Slava Zanko
bc7abbecbe Merge branch '1396_with_search_engine'
* 1396_with_search_engine:
  Fixed incorrect showing name of search library in summary screen
  Ticket #1396: Fixed logic of processing '--with-search-engine' configure option.
2009-12-24 10:39:51 +02:00
Slava Zanko
f3f30e46f6 Fixed incorrect showing name of search library in summary screen
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-12-24 10:39:36 +02:00
Slava Zanko
e67965bd74 Ticket #1396: Fixed logic of processing '--with-search-engine' configure option.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-12-24 10:39:36 +02:00
Andrew Borodin
c4d3705b91 Merge branch '1892_resource_leaks'
* 1892_resource_leaks:
  Ticket #1892: fixed resource leaks.
2009-12-23 22:31:46 +03:00
Andrew Borodin
b9400e140f Ticket #1892: fixed resource leaks.
Fixed memory leak.
Fixed unclosed file descriptors.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-12-23 22:31:30 +03:00
Marcel Pol
4c3b02fe3f I have an update for the Dutch translation.
Ther eare 7 untranslated items, they need to be looked after some other time.
Some bugs were fixed and many strings were translated. Please update.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-12-23 21:27:49 +02:00
Slava Zanko
17b281a378 Merge branch '1873_archive_search_hangup'
* 1873_archive_search_hangup:
  viewer: now show warning if matches not found
  Ticket #1873: Viewer: hangup after search in archive
2009-12-23 21:16:18 +02:00
Slava Zanko
62ece7e048 viewer: now show warning if matches not found
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-12-23 21:15:50 +02:00
Slava Zanko
46f6c4d1b7 Ticket #1873: Viewer: hangup after search in archive
viewer hangup after search in archive

Test case:
 * download ftp://ftp.slackware-brasil.com.br/slackware-12.0/testing/MANIFEST.bz2 or any slackware MANIFEST.bz2 from internet
 * F3 under MANIFEST.bz2
 * F7 "fortunes-o.tar.gz"<enter>
 * hangup

Fix issue:
 * Change growbuff from owm implementation into g_ptr_array
 * Fixed calculating of search_start position
 * Search module: fixed checking for return code from update callback
 * Search module: Added return code MC_SEARCH_CB_OK for search callbacks
 * Added exit on keyboard break
 * Fixed search in last grow'ed block

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-12-23 21:15:41 +02:00
Slava Zanko
0ad310c1c6 Merge branch '1637_no_TOSTOP'
* 1637_no_TOSTOP:
  don't set TOSTOP attribute on slave terminal
2009-12-23 21:02:44 +02:00
Aliaksey Kandratsenka
233f943e87 don't set TOSTOP attribute on slave terminal
TOSTOP doesn't work well with some software. Examples known to me are:
- debugging multithreaded program with gdb (gdb job stops)
- running 'check' tests in fork mode (default) that do some output
(tests mysteriously fail due to timeout)

IMO TOSTOP adds too little value compared to compatibility problems it
creates.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-12-23 15:36:14 +02:00
Gergely Szabo
fc08c10012 Corrected Czech hints file.
English hints 16 and 31, 7 and 42 are identical, keeping just one czech for each one.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-12-23 11:24:21 +02:00
Slava Zanko
a9d87ebe20 Update Czech translation: removed deprecated strings
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-12-23 11:18:05 +02:00
Gergely Szabo
795181aa10 Final testing and polish
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-12-22 20:52:34 +02:00
Slava Zanko
204b8ac66b Merge branch '1605_incorrect_parsing_ftp_string'
* 1605_incorrect_parsing_ftp_string:
  Ticket #1605: Incorrect parsing FTP-string
2009-12-22 11:08:06 +02:00
Slava Zanko
cf8ae36637 Ticket #1605: Incorrect parsing FTP-string
ENTRY "example.net" URL "/#ftp:examplenet:5wDJP1B/y@example.net"

When I try connect to it I saw:
"ftpfs: making connection to examplenet"
off course this is failed by timeout.

Fix issue:
Now search for '@' sign.
If present - search for slash at found position
If not present - search at start of string.

Also fixed parce '@' sign into password area of URI.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-12-22 11:07:24 +02:00
Martin Zoubek
3c49c19ac0 Added complete czech translation.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-12-22 10:36:08 +02:00
SZABO Gergely
5c182c30a7 Ticket #1370 - Hungarian translation updated
Based on commit f574b9be...

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-12-22 10:28:21 +02:00
Ilia Maslakov
310e44a7df Merge branch '1884_move_to_bottom_fix'
* 1884_move_to_bottom_fix:
  Ticket #1884 (incorrect jump to the EOF)
2009-12-22 10:28:10 +03:00
Ilia Maslakov
3edfb0bc58 Ticket #1884 (incorrect jump to the EOF)
fixed edit_move_to_top for save the current cursor column position after jump to the EOF.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2009-12-21 10:43:57 +03:00
Ilia Maslakov
87917730dc Merge branch '1877_scroll_downward_fix'
* 1877_scroll_downward_fix:
  Ticket #1877 (edit scroll down fix)
2009-12-17 17:17:32 +00:00
Ilia Maslakov
b0c58fbf4d Ticket #1877 (edit scroll down fix)
fixed edit_move_updown: cursor held, text scrolled up.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2009-12-17 17:10:55 +00:00
Slava Zanko
40e8896bd6 Update documentation: added description of "Stable symlinks" checkbox in copy/move dialogs
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-12-17 13:59:46 +02:00
Slava Zanko
45e793199a Update Russian translate (thanks to guys from fedora@conference.jabber.ru chatroom)
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-12-17 01:11:44 +02:00
Andrew Borodin
29ecc9825f Merge branch '1876_ctrl_c_fix'
* 1876_ctrl_c_fix:
  Ticket #1876: Fix of Ctrl-c behaviour for S-Lang.
2009-12-16 17:23:48 +03:00
Andrew Borodin
c9a1c7f39e Ticket #1876: Fix of Ctrl-c behaviour for S-Lang.
Since Ctrl-C is used as common shortcut, don't use it
to generate the SIGINN signal in S-Lang library.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-12-16 17:23:29 +03:00
Slava Zanko
a958fc9136 Merge branch '1845_code_cleanup'
* 1845_code_cleanup: (30 commits)
  editcmd.c 'eval_marks': removed unused variable 'diff'
  The check result of g_new(), g_new0(), g_malloc(), g_malloc0() and g_realloc() is useless.
  Remove declaration of unused function.
  Added glib library for mcserv
  rearranging some lines in src_skin_colors.c mc_skin_color_parse_ini_file()
  missing check in src_mcconfig_get.c-mc_config_get_groups()_-2
  Unifying of g_strconcat() calls
  Types accuracy, minor optimization, removed unneeded goto and return.
  Fixed i18n of file operation dialog titles.
  added NULL check before call g_utf8_find_prev_char, g_utf8_get_char_validated for more safety.
  More usage of GLib functions.
  No need to call done_menu() at MC exit.
  Optimization of DLG_RESIZE message handling.
  doxygen: various warning fixes
  Fixed forgotten call of va_end() in mc_log().
  src/boxes.c (configure_vfs): fixed #ifdef directive.
  m4.include/mc-cflags.m4: added -fdiagnostics-show-option (exact warning option)
  configure.ac: guard $CFLAGS with "" in tests
  m4.include/mc-cflags.m4: sorted CFLAGS (no flags were added or removed)
  cflags: enable -Wformat in maintainer mode
  ...
2009-12-16 11:11:31 +02:00
Ilia Maslakov
26689fc39e editcmd.c 'eval_marks': removed unused variable 'diff'
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2009-12-16 11:10:44 +02:00
Andrew Borodin
dc604d811a The check result of g_new(), g_new0(), g_malloc(), g_malloc0() and g_realloc() is useless.
g_new(), g_new0(), g_malloc(), g_malloc0() and g_realloc() functions
never return NULL and call abort() on fail. So check result of these
functions is useless. g_try_new(), g_try_new0(), g_try_malloc(),
g_try_malloc0() and g_try_realloc() functions are used instead.

Some minor optimization and code formatting are also performed.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-12-16 11:10:43 +02:00
Andrew Borodin
1aee8632ef Remove declaration of unused function.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-12-16 11:10:43 +02:00
Slava Zanko
2a17d8460f Added glib library for mcserv
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-12-16 11:10:43 +02:00
Vit Rosin
80d474fdfa rearranging some lines in src_skin_colors.c mc_skin_color_parse_ini_file()
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-12-16 11:10:43 +02:00