Commit Graph

3993 Commits

Author SHA1 Message Date
Pavel Roskin
7c9b06dd4c * configure.in: Enable subshell support on all operating systems
by default.  Old issues are most likely solved by now.
2002-08-19 05:17:34 +00:00
Pavel Roskin
e29d69423a * help.c (help_follow_link): Made static. 2002-08-19 05:00:58 +00:00
Pavel Roskin
9ff6874d9e * lib/mc.ext.in: Try links before lynx. Force full path when
invoking X11 browsers - it breaks VFS, but VFS support in mc.ext
is already broken if the program starts in background.  Add a
comment discouraging taking this code as example.
2002-08-19 02:27:19 +00:00
Pavel Roskin
11bd8d9c39 * subshell.c (synchronize): Discard all remaining data from
stdin to the subshell.
2002-08-19 02:06:01 +00:00
Pavel Roskin
105877896d * subshell.c (exit_subshell) [AIX_TCSH_CODE_BELOW_IS_IT_FIXED]:
Remove.  Nobody has fixed this code for years.
2002-08-19 01:54:34 +00:00
Pavel Roskin
6efa4a23f3 * main.h [USE_INTERNAL_EDIT]: Don't include declarations from
edit.h.
* setup.c [USE_INTERNAL_EDIT]: Include edit.h.
2002-08-19 01:43:40 +00:00
Pavel Roskin
3a93326ce7 * editoptions.c: Make some variables static.
* edit.h: Take extern declaratrions from all C files.
2002-08-19 01:23:24 +00:00
Pavel Roskin
96322324ea * boxes.h: Remove user_format.
* boxes.c: Make more variables static, remove all extern
declarations.
* setup.c: Remove some extern declarations.
2002-08-19 01:01:20 +00:00
Pavel Roskin
f319f7671f * vfs.h: Declare vfs_timeout and tar_gzipped_memlimit. 2002-08-19 00:59:02 +00:00
Pavel Roskin
5dbb74eca2 * editcmd.c (edit_block_process_cmd): Plug memory leak.
Simplify logic, reformat.
2002-08-19 00:33:08 +00:00
Pavel Roskin
1e6c5b17ce * mountlist.h: Move some internals ...
* mountlist.c: ... here.
2002-08-19 00:07:08 +00:00
Pavel Roskin
2ec6e2893e * doc/mc.1.in (Controlling Midnight Commander): Remove, it's obsolete.
* doc/es/mc.1.in: Likewise.
* doc/ru/mc.1.in: Likewise.
* doc/hu/mc.hlp.hu: Likewise.
2002-08-18 23:36:55 +00:00
Pavel Roskin
ab104ea1f5 * lib/mc.menu: Remove all references to $MC_CONTROL_FILE, which
was unsafe by design and is no longer supported.  Use %t instead
of %u to preserve tags in case of failure.
2002-08-18 22:53:07 +00:00
Pavel Roskin
5d6b103e96 * vfs/extfs/ftplist.in: Remove support for running commands, it
makes no sence.
2002-08-18 22:40:36 +00:00
Pavel Roskin
0d89dec899 * main.c: Remove extremely unsafe and poorly designed support
for /tmp/mc.$PID.control file.
* util.c (my_putenv): Remove, it's unused now.
2002-08-18 22:31:49 +00:00
Pavel Roskin
b9421d6927 * panel.h (struct format_e): Make string_fn return const char *.
Adjust all dependencies.
* screen.c (string_file_mtime): Return empty string for "..".
(string_file_atime): Likewise.
(string_file_ctime): Likewise.
2002-08-18 22:01:51 +00:00
Pavel Roskin
05e708a791 * view.c (display): Use enum for boldflag values. Fix cursor
highlighting for the ASCII part of the hex editor.
2002-08-18 20:18:04 +00:00
Pavel Roskin
69f67049fa * layout.c (init_curses) [!HAVE_SLANG]: Add support for
stickchars - fill acs_map[] with ASCII approximations.
* main.c [!HAVE_SLANG]: Enable --stickchars (-a) for ncurses.
2002-08-18 16:34:29 +00:00
Pavel Roskin
f843cac110 Remove mc.global. 2002-08-17 01:17:14 +00:00
Pavel Roskin
785ff75d4f * lib/mc.global: Remove, it duplicates the role of mc.lib.
* lib/mc.lib: Add contents of mc.global.
* lib/Makefile.am: Remove all references to mc.global.
2002-08-17 01:16:02 +00:00
Pavel Roskin
d7f635e142 * setup.c: New variable global_profile_name to hold full name of
mc.lib.
(load_setup): Calculate global_profile_name.
(done_setup): Free global_profile_name.
(load_key_defs): Use global_profile_name.
* treestore.c (should_skip_directory): Likewise.
2002-08-17 01:11:21 +00:00
Pavel Roskin
0ab6c80efd * syntax/sh.syntax: Fix highlighting of "<<-EOF".
Reported by Andrew V. Samoilov <sav@bcs.zp.ua>
2002-08-16 22:28:13 +00:00
Pavel Roskin
0707cb5278 * man2hlp.c: Implement persistent fread and fwrite to make sure
that all output is read and written.
2002-08-16 16:48:27 +00:00
Andrew V. Samoilov
7b867c0d5c * user.c (expand_format): Cast the argument to functions
for character classification to unsigned int.
(execute_menu_command): Likewise.
2002-08-16 14:56:13 +00:00
Andrew V. Samoilov
4fa385b62e * clientgen.c (fix_char_ptr): Commented out 2002-08-16 11:00:48 +00:00
Andrew V. Samoilov
64cb753187 * syntax/sh.syntax: Highlight alias, bg, eval, exec, export, fg,
set, umask and unset like other builtin commands.
2002-08-16 09:17:11 +00:00
Andrew V. Samoilov
fe2fdc4057 * help.c (show): Cast *paint_start to unsigned char to display
Cyryllic with ncurses.
[HAS_ACS_AS_PCCHARS] (acs2pc_table): Make const.
2002-08-16 09:07:20 +00:00
Andrew V. Samoilov
f289243ff2 * help.c (show): Cast *paint_start to unsigned char to display
Cyryllic with ncurses.
[HAS_ACS_AS_PCCHARS] (acs2pc_table): Make const.
2002-08-16 08:55:07 +00:00
Andrew V. Samoilov
9903101a05 Remove obsoleted location lines ("# file:line") 2002-08-16 08:39:31 +00:00
Pavel Roskin
479ccc534f * treestore.c (tree_store_remove_entry): Don't use ts.check_name
and don't check it.
2002-08-16 00:05:29 +00:00
Pavel Roskin
cafbb72684 * treestore.c: Remove unused code, reformat.
* treestore.h: Remove unused declarations.
2002-08-15 23:31:23 +00:00
Pavel Roskin
b1dbe77c5b * vfs.c (mc_def_getlocalcopy): Preserve existing extension. 2002-08-15 22:30:05 +00:00
Pavel Roskin
7f923cc9c0 * direntry.c (vfs_s_getlocalcopy): Fix potentially dangerous
strcpy().
2002-08-15 21:31:54 +00:00
Pavel Roskin
5a52a8bc85 * configure.in: Remove check for SIGTSTP, it's not needed for
the subshell support.
2002-08-15 21:23:33 +00:00
Pavel Roskin
0dbf2d1caf * acinclude.m4 (AC_SHORT_D_NAME_LEN): Remove, this test is now
done at runtime.
* configure.in: Don't use AC_SHORT_D_NAME_LEN.
2002-08-15 21:19:52 +00:00
Pavel Roskin
cf8ab0de99 * extfs.c (s_readdir): Simplify.
* direntry.c (vfs_s_readdir): Use vfs_dirent.
* mcfs.c (mcfs_readdir): Likewise.
* smbfs.c (smbfs_readdir): Likewise.
* undelfs.c (undelfs_readdir): Use vfs_dirent and
compute_namelen().
2002-08-15 21:15:17 +00:00
Pavel Roskin
37f335b8c0 * vfs.h: Introduce union vfs_dirent to ensure that we have
enough space for the filename.
* extfs.c (s_readdir): Use vfs_dirent.  Avoid strcpy().
2002-08-15 20:29:34 +00:00
Pavel Roskin
8b8d7de7ca * direntry.c (vfs_s_readdir): Use compute_namelen().
* extfs.c (s_readdir): Likewise.
* mcfs.c (mcfs_readdir): Likewise.
* smbfs.c (smbfs_readdir): Likewise.
2002-08-15 19:38:17 +00:00
Pavel Roskin
8d173014e9 * fs.h (compute_namelen): New inline function to take care of
the d_namlen field if and only if it's needed.
2002-08-15 19:35:53 +00:00
Pavel Roskin
58da40fa6a * screen.c (string_file_name): Replace non-printable characters
with question marks.
2002-08-15 16:52:51 +00:00
Pavel Roskin
f0dbdeb72e * subshell.c (read_subshell_prompt): Remove argument "how", it's
never set to VISIBLY.  Adjust all dependencies.  Eliminate hack
with "clear_now" - it causes invalid memory access and hides the
real problem.
* util.c (strip_ctrl_codes): Fix possible invalid memory access
if the escape sequence ends unexpectedly.
2002-08-15 06:53:44 +00:00
Pavel Roskin
786c75b683 * dir.c (do_load_dir): Fix leaking of file descriptors - always
call mc_closedir() before return.
2002-08-15 02:02:49 +00:00
Pavel Roskin
66c5184faa Revert undocumented change in the declaration of decompress_extension(). 2002-08-15 01:45:06 +00:00
Pavel Roskin
6d2f235053 * main.c (do_execute) [!HAVE_SUBSHELL_SUPPORT]: Compile fix. 2002-08-15 01:36:09 +00:00
Pavel Roskin
11a66b3ffd * vfs.h [!USE_VFS]: Declare mc_setctl as static inline function
to fix warnings.
2002-08-15 01:33:11 +00:00
Andrew V. Samoilov
7d54de2474 * doc/ru/mc.1.in: Remove reference to README.edit.
* doc/mc.1.in: Likewise.
* doc/hu/mc.hlp.hu: Likewise. Remove /var/tmp/mc-4.5.46-buildroot
everywhere.
2002-08-14 17:08:26 +00:00
Andrew V. Samoilov
b6a6aa0759 * doc/ru/xnc.hlp: Don't highlight spaces before link names. 2002-08-14 16:47:54 +00:00
Andrew V. Samoilov
4c25b24536 * util.c (reverse_string): Speed up. 2002-08-14 16:33:50 +00:00
Pavel Roskin
36f199cc10 * doc/mc.1.in: Consistently use "native" ftp syntax.
* doc/ru/mc.1.in: Likewise.
* doc/es/mc.1.in: Update from David Martin <dmartina@excite.com>
* doc/es/xnc.hlp: Likewise.
2002-08-14 16:09:06 +00:00
Pavel Roskin
7ea7ec49ab * view.c (display): Use only declared color pairs to fix hex
editor appearance with ncurses.  Eliminate some useless defines.
2002-08-14 07:41:01 +00:00