(erase_dir_after_copy): don't call g_queue_is_empty() if erase_list is NULL.
erase_list is NULL in case of move an empty directory across filesystems.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
'po' directory does not use automake assignment.
This is a correction for f45d02ba2a.
ClosesMidnightCommander/mc#191.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
AC_SEARCH_LIBS macro adds required library to 'LIBS' variable.
Currently 'LIBS' could be appended to 'MCLIBS' several times leading to
duplication of found values.
Also fixed duplication for 'stdscr' function detection.
Additionally fixed potential problematic situation when 'addwstr' or
'has_colors' detected in one ncurses library (for example 'ncurses'),
while 'stdscr' detected in other ncurses library (for example 'curses').
Such combination leads to problems.
ClosesMidnightCommander/mc#187.
Signed-off-by: Karlson2k (Evgeny Grin) <k2k@narod.ru>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
If ncurses location is not specified by configure parameters like
'--with-ncurses-includes=/some/dir' then automatic detection at compiler
default location is used. With automatic detection the header
'ncurses/term.h' is not checked therefore macro HAVE_NCURSES_TERM_H is
not defined.
ClosesMidnightCommander/mc#186.
Signed-off-by: Karlson2k (Evgeny Grin) <k2k@narod.ru>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
POSIX specifis '$<' only for "inference" rules (i.e. general rule
like '.c.o:'), while for "target" is undefined.
It is supported as extension for targets by some "make" implementations,
but not all.
The workarounds could be easily used.
ClosesMidnightCommander/mc#185.
Signed-off-by: Karlson2k (Evgeny Grin) <k2k@narod.ru>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* 4459_sed:
Replaced unportable 'inplace' sed command
Use configure detected or user specified sed in build system
Ticket #4459: usage of 'sed' in build system/makefiles is not portable.
'-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.