Commit Graph

9627 Commits

Author SHA1 Message Date
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
Andrew Borodin
e2db88810b Merge branch '1980_glib_version'
* 1980_glib_version:
  Ticket #1980: increased minimal required version of GLib up to 2.8.
2010-01-28 15:10:37 +00:00
Andrew Borodin
5a92bf096a Ticket #1980: increased minimal required version of GLib up to 2.8.
g_try_new, g_try_new0 and g_try_malloc0 macros
are available in Glib >= 2.8.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-01-28 15:10:00 +00:00
Sergei Trofimovich
81b644df8a Ticket #1981: configure.ac: add AM_PROG_CC_C_O as we use compiler, that accepts '-c' and '-o' options
src/consaver/Makefile.am:5: compiling `cons.saver.c' with per-target flags requires `AM_PROG_CC_C_O' in `configure.ac'

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-28 14:47:45 +02:00
Enrico Weigelt, metux IT service
837295b62a Merge branch '1925_mcserver_conditional'
* 1925_mcserver_conditional:
  Added check for empty value of 'enable_mcserver' variable for more proper summary output.
  Ticket #1925: Fixed conditional compile of mcserver
2010-01-27 22:00:06 +01:00
Slava Zanko
8211adc425 Added check for empty value of 'enable_mcserver' variable for more proper summary output.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-27 21:56:46 +01:00
Enrico Weigelt, metux IT service
a295a9df47 Ticket #1925: Fixed conditional compile of mcserver 2010-01-27 21:56:46 +01:00
Slava Zanko
bf951d52ed Merge branch '1957_build_AIX'
* 1957_build_AIX:
  patches for AIX with ncurses support
2010-01-27 12:03:32 +02:00
Rainer Tammer
476145a0f5 patches for AIX with ncurses support
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-27 10:04:38 +02:00
Mikhail S. Pobolovets
2bbe975b2c git: .gitignore updated to current source tree state
Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2010-01-26 19:05:37 +02:00
Andrew Borodin
e53f22a4c0 Syntax highlighting: added .HPP extension to the list of C/C++ sources.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-01-26 16:39:30 +00:00
Andrew Borodin
353dac2214 Merge branch '1935_edit_lock_fix'
* 1935_edit_lock_fix:
  Ticket #1935: Incorrect lock files check when hostname contains wide characters.
2010-01-26 13:21:17 +00:00
Andrew Borodin
70a41e4fed Ticket #1935: Incorrect lock files check when hostname contains wide characters.
Bug: in lock_extract_info() number of unicode characters
is used as number of bytes in string.

Now strlen() is used instead of str_term_width() to calculate
string length. String length is calculated only one time.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-01-26 13:18:21 +00:00
Slava Zanko
173d2d4b90 Merge branch '1866_filesystem_reorganization'
* 1866_filesystem_reorganization: (27 commits)
  src/viewer/display.c: added forgotten #include "src/charsets.h"
  Removed src/pipethrough.* files.
  Move src/cons.saver into src/consaver/* subdir
  Changes for build after moving logging.[ch] into library
  Move logging.[ch] into library
  Changes for build after moving strutils into library
  Moved strecape.[ch] into library
  Added include of "fileloc.h" into subshell.c file
  Changes for build after moving interface includes
  Move all interface includes from subdirs lib/*/*.h into lib/*.h
  Reorganization of usage external libs
  Changes for build after moving strutil into lib
  Change maint/template.c matched with new place of global.h
  Moved strutil-related stuff from src into lib/strutil/*
  Changes for build after moving util.[ch]
  Moved src/util.[ch] into lib, also moved unixcompat.h and utilunix.c.
  Reorganization of sources. Part 2
  Reorganization of sources. Part 1.
  global.h Removed unneeded include of file "textconf.h"
  Reorganized pathes to files in '#include' directives
  ...
2010-01-26 10:30:48 +02:00
Slava Zanko
9104ad78e1 src/viewer/display.c: added forgotten #include "src/charsets.h"
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:26 +02:00
Slava Zanko
8172b511bb Removed src/pipethrough.* files.
Glib have fully-functional replacement:
http://library.gnome.org/devel/glib/stable/glib-Spawning-Processes.html

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:26 +02:00
Slava Zanko
862652bd1b Move src/cons.saver into src/consaver/* subdir
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:26 +02:00
Slava Zanko
545cb0a194 Changes for build after moving logging.[ch] into library
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:26 +02:00
Slava Zanko
2fa4d9b952 Move logging.[ch] into library
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:26 +02:00
Slava Zanko
e2f8a48ed8 Changes for build after moving strutils into library
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:26 +02:00
Slava Zanko
e07ba16b3b Moved strecape.[ch] into library
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:25 +02:00
Slava Zanko
108666b192 Added include of "fileloc.h" into subshell.c file
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:25 +02:00
Slava Zanko
7c5212642e Changes for build after moving interface includes
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:25 +02:00