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>
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>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Ticket #1953: some cppcheck cleanups

(error) Resource leak: f

Fixed opened file leak on certain kind of errors.
Thanks to cppcheck.

(possible error) Memory leak: host

Fixed memory leak on 'host == ""' case.
Thanks to cppcheck.

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Revert "Ticket #1605: Incorrect parsing FTP-string"

This reverts commit cf8ae36637b6f15db3dbc884156cb6273d85c3a5.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Ticket #1954: check pointers to GArray before deletion.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Ticket #1931: VFS: added missing includes of vfs/vfs.h

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
VFS: moved functions from src/vfsdummy.h to vfs/vfs.h

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
VFS: removed obsolete src/vfsdummy.h

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
vfs/ftpfs.c: fixed a nullptr leak in ftpfs_find_machine()

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
VFS: renamed vfs/tcputil.h to vfs/netutil.h.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
VFS: renamed vfs/tcputil.c to vfs/netutil.c.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
vfs: cleaned up tcp_init()

tcp_init() is now called by every vfs which needs it and prevents
itself from duplicate initialization.

this is the first step to get rid of --enable-netcode and so clean
up things a bit.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Moved vfs_split_url() from vfs/utilvfs.c to vfs/netutil.c

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Ticket #1944: incorrect draw of wrapped lines.

If viewer is in wrap mode, there is an expta empty line
in wrapped line. This bug was introduced in
8c84095ae1afc1f60eb1cb73e318cf315ac77a9c commit.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Ticket #1960: src/mcconfig/common.c: fixed missing printf format in mc_config_new_or_override_file()

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Ticket #1930: src/strutil8bit.c: fixed missing include of fs.h

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Ticket #1932: Removed obsolete checks for standard header termios.h

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
More HAVE_TERMIOS_H removals

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Ticket #1657: Transparency support is broken in 4.7.0-pre3

The latest version breaks transparency support.
If I'd change _default_ to lightgray;default in the [core] section, the panels are unreadable.
It looks like the _default_ variable interpreted as lightgray;lightgray.

Fix Issue: do not apply COLOR_WHITE as mask if color value equal to -1

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Documentation update: fixes for spelling errors from Debian.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>