* Added 'editor_cursor_after_inserted_block' config option (default value is: FALSE)
* Cursor placed at end of inserted chars when extern file is inserted under cursor
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
* 2926_screen_lib_flags:
Clarify usage of AM_CPPFLAGS.
PCRE_CFLAGS are CPPFLAGS, actually.
m4.include/mc-with-screen-slang.m4: clarify usage of CPPFLAGS, CFLAGS and LDFLAGS
Ticket #2926: fail to check ncurses library
...if --with-ncurses-inc and --with-ncurses-libs options are used.
m4.include/mc-with-screen-ncurses.m4: clarify usage of LDFLAGS in
ncurses library checking: add $ac_curses_lib_path.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* 2924_preserve_dir_attributes:
(copy_dir_dir): get rid of extra string duplication.
(copy_dir_dir): refactoring: get rid of goto dont_mkdir.
Ticket #2924: attributes of existing directories are never preserved.
If superuser copies a directory tree (e.g. from a safe backup location
(with sane permission, owner, group, timestamp) over an existing tree,
any attributes are not preserved. All destination dirs retain all their
existing attributes instead of change attributes from source.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* 2913_sanitize:
Added parameter quotation
Added tests for name_quote function.
exec_get_export_variables(): reproduce bug in test
Ticket #2913: CVE-2012-4463 mc-4.8.5: Does not sanitize MC_EXT_SELECTED variable properly
Paul Hartman reported the following (minor) security flaw into Gentoo's bugzilla:
https://bugs.gentoo.org/show_bug.cgi?id=436518
When multiple files are selected and F3 / Enter key is pressed on some of the files,
MC_EXT_SELECTED variable does not sanitize the whitespace characters properly
(leading into situation when first file is used as the actual value of MC_EXT_SELECTED
variable and the remaining files from the list are used as arguments passed to the
temporary script, created to handle F3 / Enter action on the first file).
A remote attacker could provide a specially-crafted archive and trick the local
Midnight Commander user into expanding and viewing it, which under certain
circumstances could lead to arbitrary code execution with the privileges of
the user running the mc executable.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
* 2919_dlg_as_widget: (57 commits)
Update po/*.po and po/mc.pot files.
Internal menu structures are opaque now.
Add useful macros for widget type cast.
Unify widget and dialog message handling.
Remove DLG_WANT_IDLE. Use W_WANT_IDLE instead.
Rename Dlg_head to WDialog.
Rename default callbacks of widget and dialog.
Unify some hotkeys.
(editcmd_dialog_raw_key_query): adjust sizes and look'n'feel.
(real_query_recursive): refactoring of dialog.
"Directory scanning" dialog: adjust look'n'feel.
Center text in query owerwrite and delete dialogs.
(query_dialog): center label horizontally.
Horizontal centering of multi-line label: center each line independently.
(file_mask_dialog): adjust width calculation.
(query_dialog): add horizontal line.
Remove DLG_REVERSE flag.
Build file operation dialogs in normal order.
Build find file dialogs in normal order.
Build "Background jobs" dialog in normal order.
...