Commit Graph

11546 Commits

Author SHA1 Message Date
Andrew Borodin
8adc0d54d7 Merge branch '2785_tar_error_message' into 4.8.1-stable
* 2785_tar_error_message:
  Ticket #2785: error message when entering into compressed tar and cpio archives.
2012-04-25 16:44:13 +04:00
Andrew Borodin
94443a2305 Ticket #2785: error message when entering into compressed tar and cpio archives.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-25 16:44:02 +04:00
Andrew Borodin
258bc59075 Merge branch '2787_relative_symlink_crash' into 4.8.1-stable
* 2787_relative_symlink_crash:
  Ticket #2787: crash when creating relative symlink.
2012-04-25 14:58:48 +04:00
Andrew Borodin
ce529dc409 Ticket #2787: crash when creating relative symlink.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-25 14:58:24 +04:00
Andrew Borodin
6336ff121e Merge branch '2783_dir_panel_order' into 4.8.1-stable
* 2783_dir_panel_order:
  Ticket #2783: directories is opened in the wrong panel.
2012-04-24 20:52:12 +04:00
Andrew Borodin
fbbd744c9e Ticket #2783: directories is opened in the wrong panel.
mc dir1 dir2

The bug: order of parameters assignment depends on current_is_left
option in panels.ini file: if current_is_left=0, then dir1 is opened
in the left panel, dir2 in the right one. If current_is_left=1,
then dir1 is opened in the right panel, dir2 in the left one.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-24 20:51:59 +04:00
Andrew Borodin
814579136c Merge branch '2784_chown_segfault' into 4.8.1-stable
* 2784_chown_segfault:
  Ticket #2784: segfault at chown.
2012-04-24 12:53:13 +04:00
Andrew Borodin
47a067c333 Ticket #2784: segfault at chown.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-24 12:52:55 +04:00
Slava Zanko
cb2082502d Updated doc/NEWS file
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-22 15:40:33 +04:00
Slava Zanko
e69a854e40 Updated translations from transifex.net
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-22 15:34:20 +04:00
Ilia Maslakov
f0726d8461 Ticket #2766 (Cursor position reset after update)
Cursor position reset after update when panel is panelized, but doesn't.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-04-22 15:34:20 +04:00
Ilia Maslakov
08bebd6569 Ticket #2757 (mcedit not record input chars)
fixed trouble with internal editor macro engine introduced by commit #68a8745f6dd7ded9437317a694225d599745e983
    now record input char and commands.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-04-22 15:34:20 +04:00
Egmont Koblinger
d7e6a68d9e Ticket #2763 (Last word of help links not clickable)
The last word of hyperlinks in the interactive help don't act on mouse clicks.
    This also implies that one-word links can't be clicked at all.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-04-22 15:21:20 +04:00
Slava Zanko
dd6340c993 Merge branch '2781_cleanup' into 4.8.1-stable
* 2781_cleanup:
  (mc_setup_by_args): fixed memory leaks.
  (reread_cmd): use vfs_path_cmp() to compare dirs.
  (do_load_dir): use vfs_path_t as a path handle.
  README.fish: fixed location of user scripts.
  Use new-style VFS prefixes.
  (nice_cd): use new-style VFS prefixes.
  (input_history_strip_password): actually url is not the pointer to constant.
  (vfs_expare): changed argument type from int to gboolean.
  (vfs_url_split): optimized to get rid of multiple string length caclulation.
  (check_for_default): minor optimization and change return value.
  (resolve_symlinks): use (vfs_path_t *) as argument.
  (tty_draw_box): do nothing if width or heigth of box is less than 1.
  (vfs_path_element_clone): ret rid of extra actions.
  (vfs_get_raw_current_dir): return pointer to constant.
  g_dirname and g_basename function are deprecated since glib-2.2.
  Ticket #2781: cleanup before 4.8.3 release.
2012-04-22 13:22:50 +03:00
Andrew Borodin
c1564d89dd (mc_setup_by_args): fixed memory leaks.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-22 14:08:53 +04:00
Andrew Borodin
91379e2cff (reread_cmd): use vfs_path_cmp() to compare dirs.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-22 14:08:53 +04:00
Andrew Borodin
7d5261a1dc (do_load_dir): use vfs_path_t as a path handle.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-22 14:08:53 +04:00
Andrew Borodin
adbfbf40df README.fish: fixed location of user scripts.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-22 14:08:53 +04:00
Andrew Borodin
93fcfd083f Use new-style VFS prefixes.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-22 14:08:53 +04:00
Andrew Borodin
70cb39a514 (nice_cd): use new-style VFS prefixes.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-22 14:08:53 +04:00
Andrew Borodin
8f1e5db996 (input_history_strip_password): actually url is not the pointer to constant. 2012-04-22 14:08:53 +04:00
Andrew Borodin
807dd268e9 (vfs_expare): changed argument type from int to gboolean.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-22 12:31:24 +03:00
Andrew Borodin
3d4e6884d8 (vfs_url_split): optimized to get rid of multiple string length caclulation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-22 12:31:24 +03:00
Andrew Borodin
6e0c4b66b2 (check_for_default): minor optimization and change return value.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-22 12:31:23 +03:00
Andrew Borodin
0ce78e1947 (resolve_symlinks): use (vfs_path_t *) as argument.
Minor optimization of resolve_symlinks() and diff_two_paths().

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-22 12:31:23 +03:00
Andrew Borodin
c653ac51b1 (tty_draw_box): do nothing if width or heigth of box is less than 1.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-22 12:31:23 +03:00
Andrew Borodin
4d399b8f7e (vfs_path_element_clone): ret rid of extra actions.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-22 12:31:23 +03:00
Andrew Borodin
f35a11e95c (vfs_get_raw_current_dir): return pointer to constant.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 12:31:23 +03:00
Andrew Borodin
ad6e60d86f g_dirname and g_basename function are deprecated since glib-2.2.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-22 12:31:23 +03:00
Andrew Borodin
cc46ca7627 Ticket #2781: cleanup before 4.8.3 release.
Fixed --no-x11 option name in man pages.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-22 12:31:20 +03:00
Slava Zanko
b1dc778b3d Ticket #2779: Active VFS directories list contain incorrect current path
1) login to any ftp or fish resource
2) select ftp/fish entry and change current path
3) go back to old path
4) press Ctrl+X A (open "Active VFS directories" dialog)

Expected result: should be correct path to current VFS path
Actual result: path is incorrect.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:56 +03:00
Slava Zanko
73bd401db1 Ticket #2777: Stale symlinks in vfs
How to reproduce:
 * mkdir -p a/b/c
 * touch a/b/c/d
 * ln -s d a/b/c/e
 * tar -cf bad.tar a
 * rm -rf a
 * cd bad.tar/utar://a/b/c

Expected result: 'e' should be valid symlink to 'd'
Actual result: 'e' looks like broken link

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:56 +03:00
Slava Zanko
4d34ce0eb8 Ticket #2765: Show directory sizes on any VFS is broken
Command "Show directory sizes" shows zero when executed on ftp, utar, fish etc.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:56 +03:00
Slava Zanko
31e94609f4 Ticket #2775: segfault after open incorrect archive
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:56 +03:00
Slava Zanko
1d9974ae0d Ticket #2760: The password for session ftp remains in input history
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:56 +03:00
Andrew Borodin
ed134d9198 (diff_view): make static.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-22 10:31:56 +03:00
Andrew Borodin
abc364791e Make mcdiff verbose if one or both parameters are incorrect.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-22 10:31:56 +03:00
Sergei Trofimovich
c8e584dead Ticket #2768 ('make check' failed)
tests/.../do_panel_cd.c: fix test when 'HOME' contains trailing slashes.

Steps to reproduce:

    $ HOME=${HOME}/ make check
    Running suite(s): /src/filemanager
    cwd=/subvolumes/var_tmp/paludis/app-misc-mc-9999/temp
    mc_config_get_home_dir ()=/subvolumes/var_tmp/paludis/app-misc-mc-9999/temp/
    0%: Checks: 1, Failures: 1, Errors: 0
    do_panel_cd.c:86:F:Core:test_do_panel_cd_empty_mean_home:0: Assertion 'ret' failed

The patch adds home dir path normalization.

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2012-04-22 10:31:55 +03:00
Sergei Trofimovich
f5550766fe tests/.../do_panel_cd.c: show patch mismath on test failure
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2012-04-22 10:31:55 +03:00
Andrew Borodin
12018c5e5a Optimization of second panel directory setup.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:55 +03:00
Andrew Borodin
ec1e364927 Ticket #2762: mc ignores second directory argument.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-22 10:31:55 +03:00
Slava Zanko
0440b5c95e Ticket #2759: Unable to edit gzipped files
Steps to reprosuce:

 *) dmesg| gzip -c9 > out.gz
 *) press F4 on out.gz file

Expected result: editor should be opened
Actual result: segmentation fault.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:55 +03:00
Slava Zanko
28408d2bb9 Fixed creating string from relative non-local VFS.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:55 +03:00
Slava Zanko
f4fdd5c3df Ticket #2758: cd command not working in shell link
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:55 +03:00
Slava Zanko
a6e3bed929 hotlist: fixed broken newly added entries.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:55 +03:00
Slava Zanko
f1b09134b1 Ticket #2753: fixed entering to old-style path format.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:55 +03:00
Andrew Borodin
bd31aa273d (extfs_get_path_mangle): minor optimization.
Avoid string allocation if it is really unneeded.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-22 10:31:55 +03:00
Andrew Borodin
ff26359af3 (panel_reload): fixup of panel current directory obtain.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-22 10:31:54 +03:00
Andrew Borodin
e0db03b20d (edit_load_file_from_filename): fixed file unlocking.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-22 10:31:54 +03:00
Ilia Maslakov
97025ab61a fixed reading the not initialized data
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-04-22 10:31:54 +03:00