'-i' sed option is not portable, not specified by POSIX and does not
work on same platforms.
Replaced with simple and obvious workarounds.
ClosesMidnightCommander/mc#184.
Signed-off-by: Karlson2k (Evgeny Grin) <k2k@narod.ru>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Sometimes system default sed is not the best option.
With this modification user may easily override sed used by build system
without editing any file.
Signed-off-by: Karlson2k (Evgeny Grin) <k2k@narod.ru>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
configure: add explicit sed detection
Actually SED variable is set automatically by LT_INIT currently.
Having explicit check should help avoiding problems if/when LT_INIT
changed.
Signed-off-by: Karlson2k (Evgeny Grin) <k2k@narod.ru>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* 1952_tar:
tar: add support of extended headers.
struct vfs_s_inode: add the 'user_data' member.
tar: prepare to support the POSIX extended headers.
tar: refactoring of archive reading.
(tar_read_header): move entry/inode creation to new function tar_insert_entry().
tar: use separate structure to store various file info.
(tar_read_header): minor optimization.
(tar_read_header): rename variable.
(tar_find_next_block): rename from tar_get_next_block.
src/vfs/tar/tar.c: remove period from error messages.
(tar_read_header): rename variables.
(tar_get_next_block): use file descriptor from archive descriptor.
(tar_open_archive_int): return status of tar archive open
src/vfs/tar/tar.c: clarify support of OLDGNU format.
(tar_decode_header): do not decode size here.
Ticket #1952: tar: support long file names in archive.
* m4.include/ax_path_lib_pcre.m4: replace by recent version from GNU
Autoconf Archive.
* m4.include/ax_check_pcre2.m4: get grom GNU Autoconf Archive.
* m4.include/mc-check-search-type.m4: support both PCRE versions.
* */*/Makefile.am: remove @CHECK_CFLAGS@ and @PCRE_LIBS@ ads they are
added via AX_PATH_LIB_PCRE and AX_CHECK_PCRE2.
* lib/search.h, lib/search/: add support of PCRE2. Thanks broly <gagan@hotmail.com>
for the initial patch.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* 4426_cleanup: (38 commits)
Update po/*.po files.
(edit_find_editor): rename from find_editor.
Listbox window: rename functions.
(buttonbar_find): rename from find_buttonbar.
Menu: rename functions.
(advanced_chown_cmd): use intermediate variables to make text more readable.
Use mc_fgetflags() and mc_fsetflags() where needed.
VFS: mc_fgetflags, mc_fsetflags: new APIs.
Minor optimization of chown/chmod/chattr operations.
(operate_single_file): clarify creation of file operation UI.
(dlg_default_destroy): send MSG_DESTROY to the dialog itself
Collect all editor options to structure.
Add EDIT and CONST_EDIT macros.
usermenu: clarify compilation w/o internal editor.
src/editor/spell.c: add missed #include.
Update template for .c files.
(do_search): remove intermediate variable.
(do_search): get rid of string duplication.
Change WDialog::data from void* to union{void*, int}
Don't create an empty string in WLabel objects.
...
Create UI to show confirmation dialog in case of foreground operation
regardless of ENABLE_BACKGROUND.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* (simple_status_msg_init_cb): pass NULL instead of "" to label_new()
to get rid of an empty string duplication.
* (advanced_chown_dlg_create): likewise.
* (chown_dlg_create): likewise.
* (dirsize_status_init_cb): likewise.
* (file_op_context_create_ui): likewise.
* (setup_gui): likewise.
* (init_hotlist): likewise.
* (init_learn): likewise.
* (file_progress_show_source): pass NULL instead of "" to
label_set_text() to get rid of an empty string duplication.
* (file_progress_show_target): likewise.
* (create_file_manager): pass NULL instead of 0 to label_new().
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Sync with GNU tar b8feb2b14247d76200fd53607d3613c82b6e5b81.
Access header->buffer + offsetof (struct posix_header, magic), instead
of header->header.magic, when reading or writing the OLDGNU_MAGIC
pattern. The code violates the C standard without this change, and GCC
warns about this if fortify checking is enabled. It's not a bug on
traditional (i.e., non-debugging) platforms, but it does violate the C
standard so it should be fixed. Problem originally reported by John
Emil Karlson in
<http://lists.gnu.org/archive/html/bug-tar/2010-04/msg00023.html>.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>