Commit Graph

15932 Commits

Author SHA1 Message Date
Andrew Borodin
789f951c3f Merge branch '4507_shell_vfs_cyrillic'
* 4507_shell_vfs_cyrillic:
  Ticket #4507: shell VFS: incorrect file names with cyrillic or diacritic symbols.
2023-10-22 18:00:11 +03:00
lnx
3c4941867a Ticket #4507: shell VFS: incorrect file names with cyrillic or diacritic symbols.
When using "Shell link", filenames with cyrillic or diacritic symbols
are displayed as chains of numbers.

The problem is due to Perl version. With Perl v5.36.0, there is no
S_ISLNK in POSIX.pm. With Perl v5.38.0, there is S_ISLNK in POSIX.pm,
so S_IMODE and S_IFMT are not imported from Fcntl due to condition
unless defined &S_ISLNK.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2023-10-15 16:21:31 +03:00
Andrew Borodin
74d9f24858 Merge branch '4232_drop_fish_protocol'
* 4232_drop_fish_protocol:
  Rename FISH VFS to SHELL one.
  Ticket #4232: drop comatibility with native FISH protocol and FISH server.
2023-10-15 16:06:41 +03:00
Andrew Borodin
6ca4ab4b4e Rename FISH VFS to SHELL one. 2023-10-15 16:04:39 +03:00
Andrew Borodin
3f42309a5d Ticket #4232: drop comatibility with native FISH protocol and FISH server.
Does anybody know any implementation of FISH server?

Should we keep the compatibility with unimplemented server?

Let's forget about the compatibility with FISH command formats. Let's
just send shell scripts with arguments that are convenient for us to the
remote host and get results of script work. The part of FISH protocol
relative to remote host answers will be used as is.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2023-10-15 16:04:38 +03:00
Andrew Borodin
3e44333776 Merge branch '4419_mc.ext.ini_makefile'
* 4419_mc.ext.ini_makefile:
  Ticket #4419: mc.ext.ini: clarify regex for Makefile.
2023-10-08 18:54:30 +03:00
Andrew Borodin
372cb29d80 Ticket #4419: mc.ext.ini: clarify regex for Makefile.
Consider "Makefile" as whole word to avoid handling of
files named like "Makefile.zip" as makefiles.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2023-10-07 14:58:21 +03:00
Andrew Borodin
e8c4677b7e Merge branch '4502_mc.ext.ini'
* 4502_mc.ext.ini:
  Ticket #4502: mc.ext.ini: escape backslashes.
2023-09-16 20:03:56 +03:00
Andrew Borodin
18421b7e54 Ticket #4502: mc.ext.ini: escape backslashes.
An unescaped backslash \ is treated as invalid escape sequences in
glib-2.77.3 and glib-2.79:
https://gitlab.gnome.org/GNOME/glib/-/issues/3094)

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2023-09-16 20:03:18 +03:00
Andrew Borodin
892bee5bf7 Merge branch '4497_mc.ext.ini_sections'
* 4497_mc.ext.ini_sections:
  Ticket #4497: mc.ext.ini: fix comments.
2023-09-16 19:59:34 +03:00
Andrew Borodin
75577b66a7 Ticket #4497: mc.ext.ini: fix comments.
Clarify desctiption of how multiple sections and keys with same names
in this file are processed.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2023-09-16 19:58:37 +03:00
Andrew Borodin
c1263686a7 Merge branch '4499_reget_timestamp'
* 4499_reget_timestamp:
  Ticket #4499: reget: wrong timestamp when resuming copy operation.
2023-09-05 13:00:43 +03:00
Andrew Borodin
0ed72610f2 Ticket #4499: reget: wrong timestamp when resuming copy operation.
(copy_file_file): always set the destination file timestamps to the
source file ones at the end of copy operation regardless of destination
file is complete or not.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2023-09-05 12:59:44 +03:00
Andrew Borodin
2cff2cfcc5 Merge branch '4500_mcdiff_segfault'
* 4500_mcdiff_segfault:
  Ticket 4500: mcdiff: segfault when display of line numbers is enabled.
2023-09-05 12:55:12 +03:00
Andrew Borodin
dfe3279a36 Ticket 4500: mcdiff: segfault when display of line numbers is enabled.
The bug was introduced in 00f84fbf24.

  * (dview_load_options): avoid NULL dereference: don't caclulate the
    width of line numbers field here because dview->a isn't created yet.
  * (dview_update): caclulate the width of line numbers field using an
    actual length of diff lines array.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2023-09-05 12:52:03 +03:00
Andrew Borodin
2849d5080e Merge branch '4494_tar_hardlinks'
* 4494_tar_hardlinks:
  Ticket #4494: tar: fix handling of hard links.
2023-08-27 16:21:54 +03:00
Andrew Borodin
a4a5c97e1f Ticket #4494: tar: fix handling of hard links.
* tar.c: add typeflag values for regular file.
  * (tar_skip_member): set data offset here (and for regular file only)...
  * (tar_insert_entry): ...not here.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2023-08-27 16:21:19 +03:00
Andrew Borodin
bc88149218 Merge branch '4498_broken_stickchars'
* 4498_broken_stickchars:
  Ticket #4498: broken stickchars (-a ) mode.
2023-08-22 22:07:59 +03:00
Chris Severance
dba05b78ea Ticket #4498: broken stickchars (-a ) mode.
'mc -a' shows ^@ for most box drawing elements. Some drawing elements
only show as ^ as the @ is overwritten by other characters.

Revert "(mc_skin_lines_parse_ini_file): do not overwrite mc_tty_frm array in case of slow and ugly terminal."

This reverts commit 6d639ce942.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2023-08-22 22:03:49 +03:00
Andrew Borodin
c56c4f63cc Merge branch '4493_FTBFS_FreeBSD'
* 4493_FTBFS_FreeBSD:
  Ticket #4439: FTBFS on FreeBSD with ext2fs attribute support:
2023-08-19 20:56:07 +03:00
Andrew Borodin
9688e7d015 Ticket #4439: FTBFS on FreeBSD with ext2fs attribute support:
local.c:35:10: fatal error: 'e2p/e2p.h' file not found
         ^~~~~~~~~~~

  * m4.include/mc-ext2fs-attr.m4: add EXT2FS_CFLAGS E2P_CFLAGS to
    CPPFLAGS here...
  * src/filemanager/Makefile.am: ...not here.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2023-08-19 20:51:07 +03:00
Yury V. Zaytsev
a18c8f2850 Update hints translations from Transifex
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2023-08-13 20:52:25 +02:00
Yury V. Zaytsev
5120ae929d Update translations from Transifex
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2023-08-13 20:48:49 +02:00
Yury V. Zaytsev
7f7ae6e04d Make Travis builds fail if tests fail
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2023-08-13 20:39:36 +02:00
Andrew Borodin
77890a3d1a tests: fix incomplete linkage in case of --enable-mclib.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2023-08-13 14:59:25 +03:00
Andrew Borodin
1f61ab0563 tar-sparse.c: turn -Werror=type-limits off here.
...to avoid following error:
comparison of unsigned expression < 0 is always false [-Werror=type-limits]

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2023-08-13 13:17:16 +03:00
Andrew Borodin
bdc5665531 lib/strutil/strutil.c: remove trailing space.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2023-08-12 20:48:18 +03:00
Andrew Borodin
7e61d298b8 (pax_decode_header): fix the loop range.
The high boundary 'u' of loop was modified in the loop as a result of
decode_num().

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2023-08-12 20:48:15 +03:00
Andrew Borodin
02dea0d65d (pax_decode_header): fix comparison of integer expressions of different signedness.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2023-08-12 20:48:07 +03:00
Andrew Borodin
38f41e4c82 (tar_free_inode): mark unused parameter.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2023-08-12 20:47:47 +03:00
Yury V. Zaytsev
3169eb1fd1 Update doc/NEWS file
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2023-08-06 17:22:36 +02:00
Yury V. Zaytsev
a60c111e04 Update hints translations from Transifex
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2023-08-06 16:10:59 +02:00
Yury V. Zaytsev
409677acf2 Update translations from Transifex
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2023-08-06 16:05:43 +02:00
Andrew Borodin
04b37639a9 Merge branch '4426_cleanup'
* 4426_cleanup: (61 commits)
  Update po/*.po files.
  (parse_integer): fix comment.
  (str_replace_all): refactoring.
  tests/lib/strutil/str_replace_all.c: rename file.
  Indentation.
  Use vfs_path_get_last_path_vfs() where it is resonable.
  Use vfs_path_get_last_path_str() where it is resonable.
  (mc_fstat): define via MC_HANDLEOP macro.
  (mc_stat, mc_lstat): define via macro.
  sftpfs: refactoring: get rid of code duplication.
  (tree_move): get rid of gotos.
  (tar_skip_member): fix NULL dereference.
  (unlock_file): eliminate goto, reduce variable scopes.
  (lock_extract_info): refactor loops.
  lib/lock.c: use sizeof() for buffer size.
  (lock_build_name): fix coding style.
  (hotkey_draw): constify argument.
  (widget_selectcolor): constify argument.
  Remove unused macro ALLOC_COLOR_PAIR_INDEX.
  lib/tty/color.c: fix coding style.
  ...
2023-08-04 21:40:45 +03:00
Andrew Borodin
3f3a4fbf12 Update po/*.po files.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2023-08-04 21:20:52 +03:00
Andrew Borodin
623fcd1316 (parse_integer): fix comment.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2023-08-04 21:05:52 +03:00
Andrew Borodin
8ce06c4868 (str_replace_all): refactoring.
Get rig of intermediate storage of string patrs. Create result string directly.
Update comments. Update test.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2023-08-04 21:05:44 +03:00
Andrew Borodin
634219ccad tests/lib/strutil/str_replace_all.c: rename file. 2023-08-04 21:04:55 +03:00
Andrew Borodin
f1cf92f435 Indentation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2023-08-04 21:04:55 +03:00
Andrew Borodin
978ce6d0dd Use vfs_path_get_last_path_vfs() where it is resonable. 2023-08-04 21:04:55 +03:00
Andrew Borodin
e20d9acecb Use vfs_path_get_last_path_str() where it is resonable. 2023-08-04 21:04:55 +03:00
Andrew Borodin
883f7af560 (mc_fstat): define via MC_HANDLEOP macro.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2023-08-04 21:04:55 +03:00
Andrew Borodin
2124ffa498 (mc_stat, mc_lstat): define via macro.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2023-08-04 21:04:55 +03:00
Andrew Borodin
b926c08ec9 sftpfs: refactoring: get rid of code duplication.
* (sftpfs_op_init): make public and use it...
  * (sftpfs_opendir): here,
  * (sftpfs_mkdir): here,
  * (sftpfs_rmdir): and here.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2023-08-04 21:04:55 +03:00
Andrew Borodin
ec98810986 (tree_move): get rid of gotos. 2023-08-04 21:04:55 +03:00
Andrew Borodin
e8e9d222a9 (tar_skip_member): fix NULL dereference.
Found by Coverity.
Coverity id #462418.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2023-08-04 21:04:55 +03:00
Andrew Borodin
54ec89d950 (unlock_file): eliminate goto, reduce variable scopes.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2023-08-04 21:04:55 +03:00
Andrew Borodin
fded68057e (lock_extract_info): refactor loops.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2023-08-04 21:04:55 +03:00
Andrew Borodin
66e79e97dd lib/lock.c: use sizeof() for buffer size. 2023-08-04 21:04:55 +03:00
Andrew Borodin
1e4d27e437 (lock_build_name): fix coding style. 2023-08-04 21:04:55 +03:00