Commit Graph

9849 Commits

Author SHA1 Message Date
Andrew Borodin 56bf77ae57 Ticket #1926: Ctrl-\ key behaviour in NCurses-based MC.
Generally, Ctrl-\ is a default assignment to SIGQUIT signal.
S-Lang breaks this assignment. NCurses doesn't, therefore
MC just quits when user presses the Ctrl-\ key.

This commit emulates the S-Lang way in NCurses-based MC.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-06 13:21:25 +03:00
Slava Zanko e23b0d5a95 Merge branch '1902_mcserv_possible_security_risk'
* 1902_mcserv_possible_security_risk:
  Ticket #1902:  (reopened defect) Possible security risk in mcserv.c
2010-02-05 17:36:33 +02:00
Slava Zanko 7ea4dfb4ca Ticket #1902: (reopened defect) Possible security risk in mcserv.c
Comment by Oswald Buddenhagen:
first, you decided to ignore my advice about not
obfuscating the code with nonsense-checks, and on top of that you
broke the string comparison (just see what happens when you try a user
named "ftpmaster").

This commit contain changes for respect this critic.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-05 17:36:19 +02:00
Andrew Borodin 8a97f22f30 Revert "Ticket #1987: added Cobol syntax highlighting."
This reverts commit a8d75fce1e.

The Cobol syntax description in misc/syntax/Syntax file
breaks highlighting of other syntaxes.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-05 12:05:27 +00:00
Franz Wuerl a8d75fce1e Ticket #1987: added Cobol syntax highlighting.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-04 14:35:55 +00:00
Andrew Borodin 1ebdf5df0a Merge branch '1445_remove_history_items'
* 1445_remove_history_items:
  Fixed listbox scrolling after item deletion.
  Minor optimization of listbox_key() function.
  Removed double check of panel history before show it.
  Documentation update.
  Added history cleanup capability.
  Changed i18n stuff of Confirmation dialog window.
  Preparation to history cleanup confirmation.
  Scroll list if last item have been deleted.
  History items can be deleted now using DEL key.
  Reimplemented usage of history list in history dialog.
  Added deletable member to WListbox structure.
  Added listbox_set_list() function.
  Small refactoring of history engine.
  Reimplemented WListbox to use GList.
  Ticket #1445: remove history items.
2010-02-04 13:44:32 +00:00
Andrew Borodin 36b2136391 Fixed listbox scrolling after item deletion.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-04 13:42:44 +00:00
Andrew Borodin 361f95a976 Minor optimization of listbox_key() function.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-04 13:42:44 +00:00
Andrew Borodin 081723c4e7 Removed double check of panel history before show it.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-04 13:42:44 +00:00
Andrew Borodin eeaf24454c Documentation update.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-04 13:42:44 +00:00
Andrew Borodin 9bc2066b1f Added history cleanup capability.
New shortcuts of WListbox widget:
d or Del: remove current item of history;
D or Shift-Del: clean the history.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-04 13:42:44 +00:00
Andrew Borodin 2a8817b9be Changed i18n stuff of Confirmation dialog window.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-04 13:42:44 +00:00
Andrew Borodin ad60c3fd8d Preparation to history cleanup confirmation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-04 13:42:44 +00:00
Andrew Borodin 43ca270f99 Scroll list if last item have been deleted.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-04 13:42:44 +00:00
Andrew Borodin 9a9e003243 History items can be deleted now using DEL key.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-04 13:42:44 +00:00
Andrew Borodin 5718372338 Reimplemented usage of history list in history dialog.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-04 13:42:44 +00:00
Andrew Borodin 1947d842a5 Added deletable member to WListbox structure.
Added deletable member to WListbox structure to enable
delete some list entries.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-04 13:42:44 +00:00
Andrew Borodin 1695465594 Added listbox_set_list() function.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-04 13:42:44 +00:00
Andrew Borodin 1d16fd3a88 Small refactoring of history engine.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-04 13:42:44 +00:00
Andrew Borodin 32c580ee87 Reimplemented WListbox to use GList.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-04 13:42:43 +00:00
Andrew Borodin aac16c693d Ticket #1445: remove history items.
Initial step: optimizatiom of listbox_remove_current() function.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-04 13:42:43 +00:00
Slava Zanko 40164d039e Merge branch '1991_toggle_panels_view'
* 1991_toggle_panels_view:
  Ticket #1991: toggle panels view
2010-02-04 11:30:00 +02:00
Slava Zanko 2b653ecf33 Ticket #1991: toggle panels view
Added keybinding for switch panels view (horizontally/vertically).

Default value for keybind is
[main]
CmdTogglePanelsView = alt-comma

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-04 11:29:16 +02:00
Slava Zanko f1e9e9df7d Merge branch '1902_mcserv_possible_security_risk'
* 1902_mcserv_possible_security_risk:
  Ticket #1902: Possible security risk in mcserv.c
2010-02-04 11:24:36 +02:00
Pavel Vasilyev b3ea5f8ceb Ticket #1902: Possible security risk in mcserv.c
Look at mcserv.c near 1019
The chroot() call's return value isn't handled - this may a security risk.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-04 11:12:56 +02:00
Slava Zanko f5da410a87 doc/man/man.1.in: Replace strange Russian word by English
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-03 15:26:07 +02:00
Slava Zanko ba943581f2 Merge branch '1921_lslR_fix'
* 1921_lslR_fix:
  Ticket #1921: Fix lslR VFS
2010-02-03 13:16:13 +02:00
Serhiy Storchaka 6191ca0b1f Ticket #1921: Fix lslR VFS
The lslR VFS does not work with ls-lR files created in en_US.UTF-8 locale and with files and directories started with whitespaces.
Followed patch fixes both issues.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-02 22:25:54 +02:00
Slava Zanko 8d1eebc30e lib/mcconfig/common.c: fixed memory leak
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-02 21:56:01 +03:00
Andrew Borodin 7bf935ad83 Fixed warning: ISO C90 forbids mixed declarations and code.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-02 21:55:37 +03:00
Andrew Borodin 6354f6b265 Fixed unused variables.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-02 21:45:21 +03:00
Andrew Borodin 7f50de4670 Added missed includes.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-02 21:45:11 +03:00
Andrew Borodin 0bd03e07f5 Ticket #1990: code cleanup before 4.7.0.2 release.
Fixed warings: local variable shadows a global declaration.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-02-02 21:45:05 +03:00
Slava Zanko f7c574b76e lib/Makefile.am: added lib/skin.h into distribution
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-02 18:01:18 +02:00
Andrew Borodin 0d28632831 Merge branch '1702_menubar_colors'
* 1702_menubar_colors:
  Ticket #1702: changed colors of alvays visible inactive menu bar.
2010-02-02 12:01:01 +00:00
Andrew Borodin 0d12e0def8 Ticket #1702: changed colors of alvays visible inactive menu bar.
If menu bar is always visible, default colors are used in menu.
If menu bar is visible when it is active, skin colors are used.

In this commit, only skin colors are applied to menu. Thanks to
Rashid N. Achilov for idea.
(see http://mail.gnome.org/archives/mc/2010-January/msg00087.html).

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-01 15:58:01 +00:00
Andrew Borodin bf9100e16b Merge branch '1967_menu_quoting'
* 1967_menu_quoting:
  Ticket #1967: shell variables quoting in user menu.
2010-02-01 13:55:33 +00:00
Andrew Borodin a77e64732c Ticket #1967: shell variables quoting in user menu.
Thanks to pavlinux for the original patch.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-01 13:55:10 +00:00
Slava Zanko 933831301f Merge branch '1972_bw_colors'
* 1972_bw_colors:
  Make b&w colors work as before
  Ticket #1972: Selections not visible on monochrome terminals
2010-02-01 12:26:02 +02:00
Vladimir Prodan 2d025b7ede Make b&w colors work as before
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-01 12:25:46 +02:00
Slava Zanko f4c23b7081 Ticket #1972: Selections not visible on monochrome terminals
Reported-By: Dr. Stefan Thurner (TU-Chemnitz)

Since 4.7, on monochrome terminals (eg. xterm-mono) the
selections are not visible anymore (pre 4.7 inverted
the selected text).

Probably this has to do w/ the new skinning stuff.

Fix issue: added additional check for b&w terminal into skins engine.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-01 12:25:46 +02:00
Andrew Borodin b5afd3ec4e Updated Russian translation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-01-31 13:15:48 +03:00
Andrew Borodin bd1d303263 Merge branch '262_remove_putenv'
* 262_remove_putenv:
  Ticket #262: remove obsolete own putenv() implementation.
2010-01-30 18:32:03 +03:00
Enrico Weigelt, metux IT service d26be9da5f Ticket #262: remove obsolete own putenv() implementation.
Removed obsolete own putenv() implementation

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-30 18:31:24 +03:00
Slava Zanko ba9c1b1de6 Merge branch '1982_segfault_on_gz_archive'
* 1982_segfault_on_gz_archive:
  edit.c: Some code refactoring&cleanup
  Ticket #1982: Segfault while opening gzip archive
2010-01-29 18:05:19 +02:00
Slava Zanko 5975418163 edit.c: Some code refactoring&cleanup
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-29 18:05:03 +02:00
Slava Zanko cd9e93b2d1 Ticket #1982: Segfault while opening gzip archive
1. touch /tmp/IzV-Útěk_do_bezpečí.gz
2. open mc
3. move cursor at /tmp/IzV-Útěk_do_bezpečí.gz
4. press F4
5. you will see an error message, press Dismiss
6. segfault

Fix issue: length of command line string for pipeing  now calculated
automatically (via g_strdup_printf()) rathen than calculating via
str_term_width1() function.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-29 18:05:03 +02:00
Ilia Maslakov dae59972d1 Merge branch '1956_last_line_problem'
* 1956_last_line_problem:
  Ticket #1956 (mcedit: moving cursor to the empty last line problem)
2010-01-29 15:09:02 +03:00
Ilia Maslakov 519e2a30cb Ticket #1956 (mcedit: moving cursor to the empty last line problem)
fixed cursor movement in empty last line.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-01-29 15:07:34 +03:00
Slava Zanko 98e4c93e5c Merge branch '1981_AM_PROG_CC_C_O'
* 1981_AM_PROG_CC_C_O:
  Ticket #1981: configure.ac: add AM_PROG_CC_C_O as we use compiler, that accepts '-c' and '-o' options
2010-01-29 11:09:57 +02:00