Commit Graph

4003 Commits

Author SHA1 Message Date
Pavel Roskin
9860f07fc9 * util.h: Remove unused and dangerous flags for my_system():
EXECUTE_TEMPFILE, EXECUTE_SETUID and EXECUTE_WAIT.
* utilunix.c: Corresponding adjustments.
* ext.c: Don't use EXECUTE_TEMPFILE, it has no effect.
2002-08-19 23:41:21 +00:00
Pavel Roskin
35aa47461b * sfs.c: Don't use flag EXECUTE_SETUID because it's being
removed as insecure and EXECUTE_WAIT because it has no effect.
* extfs.c: Likewise.
2002-08-19 23:20:03 +00:00
Pavel Roskin
d1e02fba0f * subshell.c (synchronize): Workaround for Cygwin (should not be
needed for the next version) - remove SIGCHLD blocking from
old_mask.
2002-08-19 22:28:00 +00:00
Marco Ciampa
728f254cd6 *** empty log message *** 2002-08-19 11:43:05 +00:00
Marco Ciampa
2b951eaced *** empty log message *** 2002-08-19 11:27:01 +00:00
Marco Ciampa
50871c06da First italian translation of main help screen... 2002-08-19 11:24:57 +00:00
Pavel Roskin
80bc69201d * acinclude.m4 (MC_WITH_VFS): Disable mcfs by default. 2002-08-19 07:27:57 +00:00
Pavel Roskin
7608383a3e * mcfs.c [!WITH_MCFS]: Disable most code. 2002-08-19 07:22:01 +00:00
Pavel Roskin
047a7f906e * dlg.h: Remove all unused flags for create_dlg(). Adjust all
dependencies.
2002-08-19 06:22:32 +00:00
Pavel Roskin
342b4bbd0f * cmd.c (fishlink_cmd): Implement user interface for FiSH.
* main.c: Add it to the menu.
2002-08-19 06:06:09 +00:00
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