Pavel Roskin
4349ae1c4e
* util.c (mc_mkstemps): Always use "unsigned long" for enthropy,
...
since gcc-2.7.2.1 on SunOS doesn't understand __extension__ and
checking for "long long" is not worth the trouble.
Reported by David Martin <dmartina@excite.es>
2001-07-17 18:38:46 +00:00
Pavel Roskin
f952acf1f8
* utilunix.c (mc_doublepopen): Use _exit() instead of exit()
...
and don't close any unrelated file descriptors. Explicitly
close inhandle.
2001-07-16 23:34:56 +00:00
Pavel Roskin
57fde54f99
* mad.h: Include stdio.h to prevent redefining mad_tempnam().
...
* main.c [HAVE_X && HAVE_MAD]: Don't call done_key().
2001-07-16 04:06:35 +00:00
Pavel Roskin
5ae49e62d1
* dlg.h: Remove declarations of non-existent functions.
...
[HAVE_X]: Disable color constants - they shouldn't be used.
2001-07-16 00:58:53 +00:00
Pavel Roskin
75be0dd7e1
Use short path in the last entry.
2001-07-15 07:24:58 +00:00
Pavel Roskin
a66a15319d
* src/boxes.c [WITH_SMBFS] (vfs_smb_get_authinfo): Copied from
...
vfs/smbfs.c, function authinfo_get_authinfo_from_user().
2001-07-15 07:04:53 +00:00
Pavel Roskin
aa9ac05960
* cmd.c [HAVE_X]: Disable source routing dialog and panel
...
comparison.
* main.c (ctl_x_map): Simplify preprocessor directives.
2001-07-15 04:14:39 +00:00
Pavel Roskin
069eaca778
* screen.c (panel_keymap) [HAVE_X]: Disable Alt-H - it's not
...
implemented properly for GNOME.
* main.c (directory_history_list) [HAVE_X]: Disable.
2001-07-15 03:50:23 +00:00
Pavel Roskin
af1dc9fd62
* panelize.c [HAVE_X]: Disable unused code.
2001-07-14 22:41:24 +00:00
Pavel Roskin
9f014513ab
* main.c [HAVE_X]: Disable Ctrl-X sequences.
2001-07-14 22:13:46 +00:00
Pavel Roskin
e280cb5c8b
* find.c: Remove code unused in the text edition.
2001-07-14 21:44:39 +00:00
Pavel Roskin
6883eb1dd0
* main.c [HAVE_X]: Eliminate setup_post() and partly done_mc().
2001-07-14 06:25:45 +00:00
Pavel Roskin
5fd1f032f3
* utilunix.c (uid_cache): Make static.
...
(gid_cache): Likewise.
(init_uid_gid_cache): Remove.
* main.c (setup_post): Don't call init_uid_gid_cache().
2001-07-14 06:13:29 +00:00
Pavel Roskin
9e7e7037f8
* main.c (default_map) [HAVE_X]: Disable Alt-T.
...
* cmd.c [HAVE_X]: Eliminate set_basic_panel_listing_to() and
toggle_listing_cmd().
2001-07-14 05:37:27 +00:00
Pavel Roskin
d1b3fc6002
* utilunix.c (canonicalize_pathname): Don't handle PATH_SEP
...
after backslash in a special way.
2001-07-13 21:21:41 +00:00
Pavel Roskin
f0d3781bfb
* subshell.c (init_subshell): Run "set echo_style=both" at
...
startup to ensure that echo in tcsh understands octal numbers.
Reported by Francis Kwok <francis.kwok@alcatel.com>
2001-07-13 00:24:50 +00:00
Pavel Roskin
dbb9234674
* Makefile.in (OURLIBS): Merge with ...
...
(LIBS): ... this. Add @LIBICONV@.
Reported by Libor Motyka <l_motycka@ortex.cz>
2001-07-12 15:02:06 +00:00
Pavel Roskin
269737723a
* subshell.c (subshell_name_quote): New function. Quote all
...
characters as octals, use command substitution.
(do_subshell_chdir): Use subshell_name_quote(). Don't change
terminal settings when the quoted path is sent to the shell -
it's now safe.
2001-07-12 14:18:39 +00:00
Andrew V. Samoilov
2d7255d8cf
* main.c: Eliminate iconify_on_exec.
...
[!HAVE_GNOME]: Eliminate nowindows, nodesktop, twopanel,
display_linksdir and cmdline_geometry.
(sigchld_handler_no_subshell): Comment fixes.
(midnight_callback): Likewise.
(print_mc_usage): Use fputs, not fprintf.
(print_color_usage): Likewise.
(argument_table): Assign 'r' with force_subshell_execution and 'U'
with use_subshell.
(process_args): Don't deal with 'r', 'U' and 'X' options.
(setup_mc) [HAVE_GNOME]: Eliminate more code.
setup.c (options): Eliminate iconify_on_exec.
2001-07-11 22:58:32 +00:00
Andrew V. Samoilov
26280ca462
;)
2001-07-11 22:57:31 +00:00
Pavel Roskin
3b83dc732f
* view.c (hex_search): Release buffer after use.
2001-07-10 17:42:25 +00:00
Pavel Roskin
ea68ebdeb5
* view.c (hex_search): Reimplement parser using sscanf. Add
...
support for decimal and octal numbers. Add error reporting.
Allocate buffer dynamically.
2001-07-09 23:19:23 +00:00
Pavel Roskin
62ef1f47bd
* hotlist.c: Add comments to avoid confusion between
...
done_hotlist() and hotlist_done().
(hotlist_done): Set l_hotlist to NULL.
(add2hotlist): Load hotlist if it's neither loaded nor loading.
This fixes Ctrl-x h. Fix compiler warning.
2001-07-09 06:43:45 +00:00
Pavel Roskin
48b3cb4154
* hotlist.c: Make more variables and functions static.
2001-07-09 05:54:58 +00:00
Pavel Roskin
3f25e54361
* ext.c (exec_extension) [HAVE_X]: Free file_name. Add comment
...
explaining why it cannot be unlinked there.
2001-07-08 21:34:55 +00:00
Pavel Roskin
4f992c2fd3
Typo in the last commit.
2001-07-06 23:07:22 +00:00
Pavel Roskin
7a177fd8d5
* view.c (exec_extension): Unlink temporary file earlier if it's
...
not going to be used.
[OLD_CODE]: Remove.
2001-07-06 23:06:45 +00:00
Pavel Roskin
a08a62bef3
* Makefile.in: Use additional quotes to preserve @prefix@ when
...
Makefile is generated.
2001-07-06 21:05:24 +00:00
Pavel Roskin
e09c2cba92
* Makefile.in: Don't use SEDCMD2, use sed.
2001-07-06 20:45:30 +00:00
Pavel Roskin
91a799e3c0
* cons.saver.c: New variable console_minor. Eliminate variables
...
len and vcs_name.
(check_file): Set console_minor to the minor device number of
the console. Disallow /dev/tty0.
(detect_console): Don't parse tty_name, instead make sure that
it corresponds to console_minor. Check console first. Fallback
to /dev/vcc/a* if /dev/vcsa* cannot be opened.
(save_console): Use console_minor.
(restore_console): Likewise.
2001-07-06 19:24:27 +00:00
Pavel Roskin
a44f9422d2
* cons.saver.c (check_file): Eliminate using text messages to
...
indicate errors. Improve debug messages.
(detect_console): Likewise.
(main): Adjust call to detect_console.
2001-07-06 17:49:27 +00:00
Pavel Roskin
91f2348983
* main.c (sigchld_handler_no_subshell): Don't restart cons.saver
...
if it died.
* subshell.c (sigchld_handler): Likewise.
2001-07-06 17:29:20 +00:00
Pavel Roskin
1cd140d5dc
* main.c (midnight_callback): Don't handle any events except
...
Ctrl-x combinations on DLG_KEY event if the menu is active.
2001-07-05 23:27:01 +00:00
Pavel Roskin
6c17a59440
* main.c (load_prompt): Don't change prompt if midnight_dlg is
...
not the current dialog.
2001-07-05 22:35:16 +00:00
Pavel Roskin
a5281c3ee4
* util.c (size_trunc_len): New function - print file size to
...
a buffer of limited length.
* util.h: Declare size_trunc_len().
* screen.c (string_file_size): Use size_trunc_len().
2001-06-28 04:17:28 +00:00
Pavel Roskin
4f10e883fd
* xslint.c: Remove.
...
* Makefile.in (SRCS): Remove xslint.c.
2001-06-26 15:03:30 +00:00
Pavel Roskin
c83fdc336c
* key.c (ctrl_pressed): Don't limit functionality to Linux.
...
* screen.c (prev_page_key): Don't require console_flag to be set
to use ctrl_pressed(), only require that HAVE_X is undefined.
(next_page_key): Likewise.
* widget.c (key_left): Don't limit functionality to Linux.
(key_right): Likewise.
2001-06-26 03:20:22 +00:00
Pavel Roskin
29adaeacbf
* main.h: Use "ifdef HAVE_GNOME", not "if HAVE_GNOME". Fix the
...
order of conditionals and put comments on endifs.
2001-06-25 21:36:38 +00:00
Andrew V. Samoilov
5cccebee91
* complete.c (filename_completion_function): Clean it up.
...
(command_completion_function): Make words, bash_reserved and
bash_builtins const, use concat_dir_and_file.
(fetch_hosts): Fix typo, style fixes.
2001-06-25 13:59:04 +00:00
Andrew V. Samoilov
b817d61e79
;)
2001-06-25 12:06:23 +00:00
Andrew V. Samoilov
e92976c937
* view.c [HAVE_CHARSET]: Include selcodepage.h.
...
(view_new): Use g_new0.
(ruler): Make static.
2001-06-25 11:24:49 +00:00
Pavel Roskin
0e334b67e8
* mem.h: Undefine bcopy(), bcmp() and bzero() before redefining
...
them.
2001-06-23 16:02:05 +00:00
Pavel Roskin
975726afd0
* ext.c (exec_extension) [HAVE_X]: Disable console handling.
2001-06-23 00:09:13 +00:00
Pavel Roskin
5c56eb0c5a
* cons.handler.c: Reorganize includes. Fix warnings on BSD.
...
* rxvt.c (rxvt_extensions): Make static.
* main.c (sigchld_handler_no_subshell) [!__linux__]: Don't try
to restart cons.saver.
* subshell.c (sigchld_handler) [!__linux__]: Likewise.
2001-06-22 23:29:18 +00:00
Pavel Roskin
2ba50c0365
* fsusage.c: Use HAVE_INFOMOUNT.
...
* mountlist.c: Likewise. Fix condition when mount_list is
declared.
(fstype_to_string): Rename mount_list to mlist to avoid
confusion with the file-scoped static variable.
2001-06-22 16:53:34 +00:00
Pavel Roskin
6ba78b2f80
s/HAVE_PARAM_H/HAVE_SYS_PARAM_H/
2001-06-22 15:56:59 +00:00
Pavel Roskin
c27d9c8cc5
* cmd.c [HAVE_X]: Disable more code. Reorder includes.
2001-06-22 15:40:12 +00:00
Pavel Roskin
b3339f9281
* main.c: Remove MenuBarEmpty. From Andrew V. Samoilov.
2001-06-20 17:15:41 +00:00
Pavel Roskin
1636c8ef6b
* wtools.c [HAVE_X]: Disable quick dialog routines.
2001-06-20 17:12:47 +00:00
Pavel Roskin
6ccb2a0131
* setup.c (save_setup) [HAVE_X]: Don't save the [Dirs] section.
...
(load_setup) [HAVE_X]: Don't load the [Dirs] section.
* main.c [HAVE_X]: Disable other_dir and boot_current_is_left.
Adjust all users.
2001-06-20 15:08:18 +00:00