Commit Graph

599 Commits

Author SHA1 Message Date
Pavel Roskin
4e57e7d468 * main.c (main): Fix compilation error when configured without
subshell support.
2001-02-10 04:28:56 +00:00
Pavel Roskin
e6d2fdadd2 * main.c (main): Do not fork subshell for mcedit/mcview. 2001-02-08 01:50:12 +00:00
Pavel Roskin
0c940743b3 * cons.handler.c (handle_console): Check the result of ttyname(). 2001-01-27 07:08:05 +00:00
Pavel Roskin
75b84a3b47 * main.c (handle_args): Exit if no arguments are given to mcview.
[HAVE_GNOME]: Don't examine argv[0] - it's done separately.
2001-01-27 06:43:42 +00:00
Pavel Roskin
676ec1d2f4 * dir.c: Respect HAVE_STRCOLL. Added a comment about strcoll(). 2001-01-27 05:51:26 +00:00
Pablo Saratxaga
85ae74cee2 Fixed various po files headers and syntax errors
added gettext:no-c-format in file.c for the prompt % codes
2001-01-26 13:49:28 +00:00
Andrew V. Samoilov
bdcc352441 * subshell.c (do_subshell_chdir): temporary patch to prevent command
execution for directory names containing 0x03 (intr) 0x14.
See http://www.securityfocus.com/vdb/?id=2016 for details.
Subshell still can't chdir to such directories :(

* subshell.[ch] (do_subshell_chdir): directory constified
2001-01-21 10:30:42 +00:00
Andrew V. Samoilov
bbef02a06f * do_subshell_chdir (): directory constified 2001-01-21 10:27:21 +00:00
Andrew V. Samoilov
ad06742c0c * do_subshell_chdir (): temporary patch to prevent command execution
for directory names containing 0x03 (intr) 0x14.
See http://www.securityfocus.com/vdb/?id=2016 for details.
Subshell still can't chdir to such directories

* directory parameter constified
2001-01-21 10:26:09 +00:00
Pavel Roskin
09a3730a98 * Makefile.in: Respect LDFLAGS when linking cons.saver. 2001-01-17 20:42:49 +00:00
Pavel Roskin
7bee992ba2 * configure.in: Don't create a faked malloc.h.
* gtkedit/edit.h: Don't assume that malloc.h always exists.
* src/mad.h: Likewise.
2001-01-13 08:09:14 +00:00
Pavel Roskin
c5404ae9cb * configure.in: Simplified handling of cons.saver.
* src/Makefile.in: Likewise. Don't install cons.saver setuid.
* mc.spec.in: Remove a workaround for the above.
2001-01-13 07:24:13 +00:00
Pavel Roskin
98f942fd46 * src/Makefile.in: Create directories before installing files.
Removed all occurences of libprefix - it's never defined.
2001-01-11 20:41:40 +00:00
Pavel Roskin
d1fcdbf64a * edit/Makefile.in: Don't install or uninstall mcedit -
it cannot be installed before mc on systems without symlinks.
* gtkedit/Makefile.in: Likewise.
* src/Makefile.in: Install mcedit (if enabled) and mcview.
Uninstall them.
2001-01-11 16:48:13 +00:00
Andras Timar
92bf5e249d 2001-01-08 Szabolcs Ban <shooby@gnome.hu>
* lib/mc.hlp.hu: Added Hungarian help file from
	  tothb1@freemail.hu, Janos.Zana@elfiz2.kee.hu,
	  maci@integrity.hu, mfh47@freemail.hu
	* lib/Makefile.am: Added LOCALIZED_HELP for further
	  mc.hlp l10ns
	* src/cmd.c, src/dlg.c, src/tree.c, src/view.c,
	  gtkedit/editcmd.c: I18n of mc.hlp
2001-01-08 18:21:33 +00:00
Alan Cox
1a0ab78ea8 As reported by Al Viro:
take Midnight Commander. Go to directory that contains some
files. Press <+><CR><+><+><CR><CR><+><+><CR> (<+> being the grey one).

IOW, the first invalid regexp and we are toast - old_pattern is freed and
not reset to NULL. Next call of regexp_match() and we've got a double-free.
What's really pissing off is that caller takes care to tell you that
regexp is invalid. In large red window. I.e. they had added error reporting
and had _never_ given it a try, not to mention giving code a review. Sigh...
2000-12-18 16:42:20 +00:00
Andrew V. Samoilov
540c532680 * view.c: Fixed long existed bugs in internal viewer. When search is
doing in binary file it ignore skipped zero(es), so cursor is before
searched expression and next search find the same string. Also regexp
search could return wrong results for '^ ?' expressions.

(get_line_at): skipped: new parameter for number of skipped zero(es)

(search): new features of get_line_at used.
2000-11-20 17:25:43 +00:00
Andrew V. Samoilov
0b8fd41ca9 * view.c: Fixed long existed bugs in internal viewer. When search is
doing in binary file it ignore skipped zero(es), so cursor is before
searched expression and next search find the same string. Also regexp
search could return wrong results for '^ ?' expressions.

(get_line_at): skipped: new parameter for number of skipped zero(es)

(search): new features of get_line_at used.
2000-11-20 17:13:21 +00:00
Andrew V. Samoilov
1cc4f6be7a * cons.saver.c (check_file): close fd on error. There was a bug, which
allowed luser to write '\0' char to any symlinkable file in Linux
system which don't ensure that fd's 0, 1, and 2 are open on startup
of a SUID/SGID binary.

Based on patch from bugtrack by Maurycy Prodeus <z33d@ETH-SECURITY.NET>.
2000-11-16 17:09:08 +00:00
Andrew V. Samoilov
62329f26d0 * layout.c (print_vfs_message): format string vulnerability fixed 2000-11-14 14:00:53 +00:00
Andrew V. Samoilov
119406157c * main.c (CmdMenu): don't include edit_user_menu_cmd ()
if USE_INTERNAL_EDIT is not defined
	(main): call edit_init_file () if USE_INTERNAL_EDIT is defined only
	(listmode_cmd): messages are localized
2000-11-02 23:35:11 +00:00
Pavel Roskin
3a70604f25 * layout.c [PORT_NEEDS_CHANGE_SCREEN_SIZE]: Declare
low_level_change_screen_size().
        (flag_winch) [PORT_NEEDS_CHANGE_SCREEN_SIZE]: Call
        low_level_change_screen_size(). From Andrew V. Samoilov.
2000-11-02 18:45:31 +00:00
Pavel Roskin
2558168fb9 * gnome/Makefile.in, src/Makefile.in, vfs/Make-mc.in: Required
flags moved out of CFLAGS as recommended by GNU coding
        standards.
        * configure.in: Don't add GLIB_CFLAGS to CFLAGS.
        * Make.common.in: XINC eliminated. GLIB_CFLAGS is now added to
        XCPPFLAGS.
        * INSTALL (Random notes on porting to other architectures):
        Completely rewritten. Recommended using CFLAGS instead of XINC.
2000-10-06 06:49:45 +00:00
Pavel Roskin
759c5aee8f * user.c (expand_format): Fixed processing of "%s".
Closes http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=15486
2000-10-04 16:34:53 +00:00
Pavel Roskin
5c619500df * Makefile.in: Added an explicit rule for man2hlp. 2000-10-01 03:13:23 +00:00
Pavel Roskin
3263fee6d4 * listmode.c, listmode.h, main.c: Consistently using define
LISTMODE_EDITOR to enable the experimental listmode editor.
* main.c: Don't allow two adjacent separators in the Command
menu.
2000-09-26 22:38:13 +00:00
Pavel Roskin
c69627ffdd * configure: Always include Make.common as file, otherwise
"make distclean" breaks.
        * edit/Makefile.in, gnome/Makefile.in, gtkedit/Makefile.in,
        slang/Makefile.in, src/Makefile.in, vfs/Make-mc.in: $(RMF)
        replaced with "rm -f" - the stangard says that "rm" is portable.
        Ditto $(MV). Adjusted *clean targets to match those in
        Automake. Removed "cross" target.
2000-09-23 05:14:31 +00:00
Pavel Roskin
5168c6a990 * fixhlp.c: Removed.
* Makefile.in: Removed all references to fixhlp.c
2000-09-23 01:43:13 +00:00
Pavel Roskin
769b082e1b * Make.common.in: Added installcheck to placate "make distcheck"
* configure.in, Make.common.in, doc/Makefile.in,
        edit/Makefile.in, gnome/Makefile.in, gtkedit/Makefile.in,
        slang/Makefile.in, src/Makefile.in, vfs/Make-mc.in: Replacing
        variable MKINSTALLDIRS and builddir with Automake-compatible
        mkinstalldirs and top_builddir.
        * doc-gnome/C/Makefile.am: Only maintainers regenerate html
        files. Added uninstall-local target.
2000-09-18 04:57:29 +00:00
Pavel Roskin
7b7cb9878d * doc/Makefile.in, edit/Makefile.in, gnome/Makefile.in,
gtkedit/Makefile.in, slang/Makefile.in, src/Makefile.in,
vfs/Make-mc.in: preserve timestamp on "make distdir", otherwise
mc.pot becomes out of date in the tarball.
2000-09-15 06:05:22 +00:00
Pavel Roskin
0c3398dcd6 * features.h: Joined with textconf.h to avoid name clash with
GNU Libc.
* features.c: Renamed to ...
* textconf.c: ... this
* Makefile.in, cmd.c, main.c, text.c: necessary adjustments
2000-09-14 18:18:24 +00:00
Pavel Roskin
3e320e6748 * Makefile.in: Don't make softlinks to the libraries 2000-09-14 17:17:46 +00:00
Pavel Roskin
91e7526108 * configure.in, Make.common.in, doc/Makefile.in,
edit/Makefile.in, gnome/Makefile.in, gtkedit/Makefile.in,
slang/Makefile.in, src/Makefile.in, vfs/Make-mc.in: rootdir
changed to top_srcdir for Automake compatability
2000-09-14 15:12:00 +00:00
Pavel Roskin
a406b17b96 * configure.in: REGEX_O variable removed - always use our regex 2000-09-14 14:28:35 +00:00
Pavel Roskin
6c249f473a * Makefile.in: Only rebuild mc.hlp in the maintainer mode. 2000-09-13 17:15:01 +00:00
Pavel Roskin
ec00659ad4 * fixhlp.c: fixed compile errors and warnings 2000-09-01 18:49:01 +00:00
Pavel Roskin
097e88621d * dirhist.c, dirhist.h: removed 2000-08-30 21:15:58 +00:00
Pavel Roskin
6c7f15c285 * features.h, keys.h, textconf.h, x.h: added protection against
multiple inclusion
2000-08-30 20:51:03 +00:00
Pavel Roskin
95b52b597c * Make.common.in: removed hack for "make distcopy"
* doc/Makefile.in, edit/Makefile.in, gnome/Makefile.in,
gtkedit/Makefile.in, slang/Makefile.in, src/Makefile.in,
vfs/Make-mc.in: added "distdir" target. Now "make dist" works
for external builds.
* edit/Makefile.in, slang/Makefile.in: added "Makefile" target
2000-08-28 18:51:22 +00:00
Pavel Roskin
0784168a37 * features.c: include <sys/param.h> to avoid a warning 2000-08-23 18:35:32 +00:00
Pavel Roskin
efe9d499fc features.inc removed 2000-08-23 14:42:49 +00:00
Pavel Roskin
0cc57d07e0 * POTFILES.in: src/features.inc renamed to src/features.c
* main.c [HAVE_X]: print_mc_usage() and print_color_usage()
removed.
version() moved to ...
* features.inc: ... here, renamed to features.c
* main.h: status_using_ncurses moved to ...
* features.h: ... here
* cmd.c, text.c: include "features.h"
* cmd.h: include "panel.h"
* Makefile.in: changed to use features.h and features.c
2000-08-23 14:41:59 +00:00
Pavel Roskin
e828211662 Updated address of Free Software Foundation 2000-08-22 22:50:00 +00:00
Pavel Roskin
7264379530 * main.c [HAVE_GNOME]: disable chmod and chown - they were
broken and obsoleted by the "Properties" dialog
2000-08-22 22:07:26 +00:00
Pavel Roskin
c9cc154b7d * cmd.c [HAVE_X]: Removed dependency on status_using_ncurses 2000-08-22 20:32:50 +00:00
Pavel Roskin
923540c16f * man2hlp.c: Removed undocumented feature - when converting
to HTML some output would go to index.html instead of stdout
2000-08-22 19:37:33 +00:00
Pavel Roskin
56916dd9b8 gindex.pl: Enable warnings. Existing warnings fixed. 2000-08-17 21:04:02 +00:00
Pavel Roskin
86f713b070 Makefile.in: mc.hlp now depends on man2hlp.c instead of
man2hlp - this avoids some rebuilds of mc.hlp
2000-08-16 22:03:00 +00:00
Pavel Roskin
927a2ced37 Removed ync.hlp - no longer used
Added mc.hlp - now a generated file
2000-08-16 21:36:02 +00:00
Pavel Roskin
9d02eaba26 mc.hlp: removed. It's a derived file
Makefile.in: Fixed dependencies for $(srcdir)/mc.hlp
Build $(srcdir)/mc.hlp but allow a failure (e.g. no perl)
2000-08-15 21:27:55 +00:00