Commit Graph

9511 Commits

Author SHA1 Message Date
Enrico Weigelt, metux IT service
f1cf193877 VFS: removed obsolete src/vfsdummy.h 2010-01-13 12:34:08 +00:00
Enrico Weigelt, metux IT service
cb56023b4d VFS: moved functions from src/vfsdummy.h to vfs/vfs.h 2010-01-13 12:34:07 +00:00
Enrico Weigelt, metux IT service
491b88eae9 Ticket #1931: VFS: added missing includes of vfs/vfs.h 2010-01-13 12:34:07 +00:00
Andrew Borodin
3e42f64c2a Merge branch '1954_g_array_free'
* 1954_g_array_free:
  Ticket #1954: check pointers to GArray before deletion.
2010-01-12 13:42:36 +00:00
Andrew Borodin
6123cac32b Ticket #1954: check pointers to GArray before deletion.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-01-12 13:42:02 +00:00
Slava Zanko
8689d6a925 Revert "Ticket #1605: Incorrect parsing FTP-string"
This reverts commit cf8ae36637.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-12 10:46:22 +02:00
Sergei Trofimovich
2c42692c7e Merge branch '1953_cppcheck_resleaks'
* 1953_cppcheck_resleaks:
  (possible error) Memory leak: host
  (error) Resource leak: f
2010-01-11 15:35:55 +02:00
Sergei Trofimovich
a8a36590f6 (possible error) Memory leak: host
Fixed memory leak on 'host == ""' case.
Thanks to cppcheck.

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2010-01-11 15:32:44 +02:00
Sergei Trofimovich
9938ee796f (error) Resource leak: f
Fixed opened file leak on certain kind of errors.
Thanks to cppcheck.

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2010-01-11 15:32:39 +02:00
Andrew Borodin
65f7b35e2f Merge branch '1905_versioning_fix'
* 1905_versioning_fix:
  Ticket #1905: fix of version calculation.
2010-01-11 09:36:54 +00:00
Andrew Borodin
ec8bab205b Ticket #1905: fix of version calculation.
configure: line 2188: 0: command not found

This error occurs due to incorrect processing of grep command output.
This commit fixed that issue.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-01-11 09:36:36 +00:00
Enrico Weigelt, metux IT service
103241e397 Merge branch '1943_maxnamelen'
* 1943_maxnamelen:
  Ticket #1943: MC won't compile on Solaris due to undefined constant NAME_MAX.
2010-01-07 16:23:34 +01:00
Milan Cermak
1bb8904c4e Ticket #1943: MC won't compile on Solaris due to undefined constant NAME_MAX.
The NAME_MAX constant is defined on Linux but not on Solaris.
This blocks building MC on (Open)Solaris systems.
However, there is another symbolic constant with same purpose -
MAXNAMLEN - which is defined on Linux, Solaris and BSD systems.

This commit replaces NAME_MAX constant with MAXNAMLEN one.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-01-07 15:22:35 +03:00
Andrew Borodin
acb051abc9 Merge branch '1942_crash_on_exit'
* 1942_crash_on_exit:
  Ticket #1942: MC crashes on exit when using C locale.
2010-01-06 18:49:22 +03:00
Milan Cermak
d80f098c11 Ticket #1942: MC crashes on exit when using C locale.
Starting mc with:
LANG=C mc
cases a crash when mc exits. No other LC_* variable was set.

The issue is in src/strutil.c module. With C locale, str_init_strings()
fails to set str_cnv_not_convert variable leaving it with value -1
(INVALID_CONV). str_uninit_strings() passes str_cnv_not_convert blindly
to g_iconv_close() which tries to dereference it.

This commit adds a check to str_uninit_strings() if str_cnv_not_convert
value is valid.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-01-06 18:46:09 +03:00
Egmont Koblinger
07f3009b71 Fixed "byte" doubled in Hungarian translation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-01-06 18:41:37 +03:00
Andrew Borodin
9e73d2f4a0 Merge branch '1918_quick_view_corruption'
* 1918_quick_view_corruption:
  Show not-printable 8-bit symbols in non-UTF-8 locales as dots.
  Minor optimization of MC viewer.
  Fixed boundaries of display text area.
  Fixed show of viewer status bar.
  MC Viewer API unification: arguments order was changed.
  Ticket #1918: viewer in QuickView mode corrupts screen.
2010-01-06 18:13:38 +03:00
Andrew Borodin
38eeaa180c Show not-printable 8-bit symbols in non-UTF-8 locales as dots.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-01-06 18:12:53 +03:00
Andrew Borodin
962dd4d81f Minor optimization of MC viewer.
Call mcview_compute_areas() not so often.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-01-06 18:12:53 +03:00
Andrew Borodin
8c84095ae1 Fixed boundaries of display text area.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-01-06 18:12:53 +03:00
Andrew Borodin
b330358440 Fixed show of viewer status bar.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-01-06 18:12:53 +03:00
Andrew Borodin
8d70916abd MC Viewer API unification: arguments order was changed.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-01-06 18:12:53 +03:00
Andrew Borodin
1055b85072 Ticket #1918: viewer in QuickView mode corrupts screen.
Initial step: code refactoring:
  * small code formatting;
  * type accuracy;
  * introduce new type 'panel_view_mode_t' for panel type.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-01-06 18:12:53 +03:00
Andrew Borodin
bea2fff1fd Merge branch '1874_save_findfile_options'
* 1874_save_findfile_options:
  Save find file options in user configuration file.
  Ticket #1874: save file find options between MC sessions.
2010-01-06 18:05:30 +03:00
Andrew Borodin
462315fe09 Save find file options in user configuration file.
The new section [FindFile] was created for find file options.
The find_ignore_dirs key in Misc section is obsolete now.
The ignore_dirs key in FindFile section is used instead.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-01-06 18:04:50 +03:00
Andrew Borodin
839816f3fe Ticket #1874: save file find options between MC sessions.
Initial step: code refactoring. Join find options (checkbox
values) in structure.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-01-06 18:04:50 +03:00
Andrew Borodin
e23a2df6fa Merge branch '1936_history_segfault'
* 1936_history_segfault:
  Ticket #1936: segfault in input line history.
2010-01-06 15:51:13 +03:00
Andrew Borodin
6d9e319106 Ticket #1936: segfault in input line history.
If input line history contains only one item, pressing M-p
("Previous history item") causes a segmentation fault.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-01-06 15:49:51 +03:00
Ilia Maslakov
287255b2ed Merge branch '1514_show_right_margin'
* 1514_show_right_margin:
  added keybind CK_Toggle_Show_Margin for toggle show right margin (with empty default key)
  add new etitor parameter editor_show_right_margin
  Ticket #1514 (show right margin)
2010-01-06 14:38:39 +03:00
Ilia Maslakov
c3755f0c50 added keybind CK_Toggle_Show_Margin for toggle show right margin (with empty default key)
added new color pair for right margin (editrightmargin) into skins

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-01-06 14:31:40 +03:00
Ilia Maslakov
7c2692cf8c add new etitor parameter editor_show_right_margin
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-01-06 14:26:02 +03:00
Ilia Maslakov
5203d6739d Ticket #1514 (show right margin)
* added new color pair EDITOR_RIGHT_MARGIN_COLOR
    * show right margin. Used EDITOR_RIGHT_MARGIN_COLOR color for drawing text beyond rigth edge.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-01-06 14:26:01 +03:00
Milan Cermak
eaf0ff08bb Update Czech translations.
Some czech translations wont fit into columns with 80 chars terminal.
This patch reverts translation to older but fitting version.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-01-05 19:17:38 +03:00
Andrew Borodin
b9250160f1 Merge branch '1843_slow_edit'
* 1843_slow_edit:
  Some simple optimization of syntax highlighting engine.
  Ticket #1843: slow syntax highlighting engine in editor.
2010-01-05 13:05:54 +03:00
Andrew Borodin
b881a7b9ad Some simple optimization of syntax highlighting engine.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-01-05 12:19:41 +03:00
Andrew Borodin
39ddea87ee Ticket #1843: slow syntax highlighting engine in editor.
Initial step: some #include's arrangement.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-01-05 12:19:41 +03:00
Marcel Pol
e6dce1dcbc Updated Dutch translation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-01-03 20:01:05 +03:00
Enrico Weigelt, metux IT service
3900dfab71 Merge branch '1933_tcc_build_fixup'
* mco/1933_tcc_build_fixup:
  Ticket #1933 (samba: fixup for builds with tcc)
2010-01-03 13:45:56 +01:00
Andrew Borodin
f683bc78a7 Ticket #1933 (samba: fixup for builds with tcc)
Removed obsolete checks for header glob.h

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-01-03 11:09:26 +00:00
Ilia Maslakov
b1c97f6c5b Ticket #1915 (not finished comment)
fixed wrong not finished comment

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-01-02 23:58:23 +00:00
Yury V. Zaytsev
50825505ca Merge branch '1920_deba_debd_vfs_fix'
* 1920_deba_debd_vfs_fix:
  Ticket #1920: Issues with deba and debd VFS
2010-01-02 17:04:50 +01:00
Serhiy Storchaka
fc9c24c6f9 Ticket #1920: Issues with deba and debd VFS
Currently, deba and debd VFS contains fake directories a-la "14:21
DEBIAN", "14:21 CONTENTS". Items from DEBIAN directory (conffiles,
md5sums, ...) not accessible.

The patch fixes this issues.

Thanks to Serhiy Storchaka for the patch.
2010-01-02 17:04:18 +01:00
Enrico Weigelt, metux IT service
ae2b21f547 Merge branch '1915_smbfs_build_fixups'
* 1915_smbfs_build_fixups:
  Replaced WITH_SMBFS by ENABLE_VFS_SMB
  vfs/smb: removed own obsolete and broken substitution of strchr
  vfs/smb: configure script fixups (for breaks on -Werror)
  Ticket #1915: vfs/smb: fixed breakage on strcpy()/strcat()
2010-01-02 16:30:06 +01:00
Enrico Weigelt, metux IT service
8c9619cef1 Replaced WITH_SMBFS by ENABLE_VFS_SMB 2010-01-02 16:29:24 +01:00
Enrico Weigelt, metux IT service
c47852cbfe vfs/smb: removed own obsolete and broken substitution of strchr 2010-01-02 16:29:24 +01:00
Enrico Weigelt, metux IT service
3e034c77ac vfs/smb: configure script fixups (for breaks on -Werror) 2010-01-02 16:27:36 +01:00
Enrico Weigelt, metux IT service
304d876d5a Ticket #1915: vfs/smb: fixed breakage on strcpy()/strcat() 2010-01-02 16:27:36 +01:00
Enrico Weigelt, metux IT service
251bd24025 Merge remote branch 'mco/1693_filetypes_lyx'
* mco/1693_filetypes_lyx:
  Ticket #1693: viewing .lyx with lyxcat, opening with lyx.
2010-01-02 15:33:30 +01:00
Enrico Weigelt, metux IT service
bcbdf6235e Ticket #1693: viewing .lyx with lyxcat, opening with lyx.
Signed-off-by: Enrico Weigelt, metux IT service <weigelt@metux.de>
2010-01-02 16:53:01 +03:00
Enrico Weigelt, metux IT service
09e2003c1e Merge remote branch 'mco/1780_remove_errno_decl'
* mco/1780_remove_errno_decl:
  Removed calls to strerror() function from own libsamba implementation.
  Removing calls of strerror() function in mc-core
  Ticket #1780: removing own declaration of errno and strerror()
2010-01-02 10:04:08 +01:00