Commit Graph

6571 Commits

Author SHA1 Message Date
Roland Illig
d3774b9d94 * utilunix.c (close_error_pipe): Fixed possible invalid memory access
(three lines below).
2004-10-11 21:53:30 +00:00
Andrew V. Samoilov
9f0c07f07a * az.po: Small text fixes.
* be.po: Likewise.
        * bg.po: Likewise.
        * ca.po: Likewise.
        * cs.po: Likewise.
        * da.po: Likewise.
        * de.po: Likewise.
        * el.po: Likewise.
        * es.po: Likewise.
        * eu.po: Likewise.
        * fi.po: Likewise.
        * fr.po: Likewise.
        * hu.po: Likewise.
        * it.po: Likewise.
        * ja.po: Likewise.
        * ko.po: Likewise.
        * lt.po: Likewise.
        * lv.po: Likewise.
        * mn.po: Likewise.
        * nl.po: Likewise.
        * no.po: Likewise.
        * pl.po: Likewise.
        * pt.po: Likewise.
        * pt_BR.po:  Likewise.
        * ro.po: Likewise.
        * ru.po: Likewise.
        * sk.po: Likewise.
        * sl.po: Likewise.
        * sr.po: Likewise.
        * sv.po: Likewise.
        * ta.po: Likewise.
        * tr.po: Likewise.
        * uk.po: Likewise.
        * wa.po: Likewise.
        * zh_CN.po: Likewise.
        * zh_TW.po: Likewise.
2004-10-11 07:53:34 +00:00
Andrew V. Samoilov
5d5f56d4ee * editcmd.c (regexp_error): Small text fix.
(edit_search_cmd): Likewise.
2004-10-11 05:31:29 +00:00
Andrew V. Samoilov
4cde691aac * file.c (copy_dir_dir): Small text fix. 2004-10-11 05:27:58 +00:00
Andrew V. Samoilov
eae25a2eff Partially revert my changes 2004-10-07 10:50:00 +00:00
Andrew V. Samoilov
e65b13eb00 * ftpfs.c (ftpfs_linear_start): Likewise.
* fish.c (fish_linear_start): Likewise.
2004-10-06 21:20:17 +00:00
Andrew V. Samoilov
126fa4d83d * cpio.c (cpio_find_head): Check mc_read() return value.
(cpio_read_crc_head): Handle mc_read() return value properly.
        (cpio_read_oldc_head): Use union for "st" and "buf".
        (cpio_read_crc_head): Likewise.
2004-10-06 21:17:30 +00:00
Andrew V. Samoilov
df27244006 * fileopctx.h (struct FileOpContext): Use off_t for offset. 2004-10-06 18:06:26 +00:00
Andrew V. Samoilov
687f435740 * xdirentry.h (linear_start): Use off_t for offset. 2004-10-06 18:04:15 +00:00
Andrew V. Samoilov
430cfca91c More typo fixes 2004-10-06 17:33:37 +00:00
Andrew V. Samoilov
04c8d59e51 Fix typos 2004-10-06 17:16:09 +00:00
Andrew V. Samoilov
82f98b11d4 * util.c(strip_password): Add support for '@' in username. 2004-10-05 14:25:28 +00:00
Andrew V. Samoilov
d0aeb947b4 * utilvfs.c(vfs_split_url): Add support for '@' in username. 2004-10-05 14:23:20 +00:00
Andrew V. Samoilov
220cf56f19 Fix typos 2004-10-05 07:15:01 +00:00
Andrew V. Samoilov
919aa12d7d * cons.saver.c: Partly rewritten cons.saver.c. 2004-10-05 07:14:09 +00:00
Andrew V. Samoilov
2d48b95137 * syntax/perl.syntax: Fix highlight the hashes.
* syntax/diff.syntax: highlight comments (lines begin with #),
        and garbage in diff files.
2004-10-05 05:56:03 +00:00
Andrew V. Samoilov
650d04146e * uk.po: Updated Ukrainian translation. 2004-09-29 10:55:36 +00:00
Andrew V. Samoilov
2ee7b81d94 * mc.qpg.in: New file. Description for QNX 6.x packager. 2004-09-28 11:48:57 +00:00
Andrew V. Samoilov
320caad2e1 * smbfs.c (smbfs_forget): Check smbfs_connections[i].cli
to avoid possible segmentation fault.  Close
        https://savannah.gnu.org/bugs/index.php?func=detailitem&item_id=8974
2004-09-28 09:30:53 +00:00
Andrew V. Samoilov
7d393abc2c * util.c (convert_controls): Fix possible buffer overflow
for ".*^" strings.
2004-09-28 09:28:57 +00:00
Roland Illig
49117d0f31 * complete.c [__linux__ && !__USE_GNU]: Fix compilation on Red Hat 7.3
* util.c (convert_controls): Fix compilation.
2004-09-27 11:26:53 +00:00
Roland Illig
c47cd9de68 * util.h (convert_controls): Adjusted the comment to what the
function really does.
2004-09-26 18:36:54 +00:00
Roland Illig
f54aef1cfc * pipethrough.c: #include <string.h> to compile on Solaris. 2004-09-26 11:50:39 +00:00
Roland Illig
7a505ea99d * editcmd.c (edit_ext_cmd): Revoked my last change. 2004-09-26 11:42:17 +00:00
Roland Illig
7b6f1db773 * vfs.c (_vfs_get_class): Reverted my last patch because
Leonard reported it to make mc crash.
2004-09-26 11:06:38 +00:00
Andrew V. Samoilov
11c6534e70 * key.c (qansi_key_defines[]): Add support for qansi-m terminals.
Needed on QNX Neutrino. (correct_key_code): Likewise.
2004-09-26 00:58:47 +00:00
Andrew V. Samoilov
d329f3c414 * sldisplay.c (SLtt_goto_rc): Disable cursor movement optimizations
for qansi-m consoles. Needed on QNX Neutrino.
        (SLtt_initialize): Init QANSI_Console variable.
2004-09-26 00:45:47 +00:00
Roland Illig
8d75409e60 * editcmd.c (edit_ext_cmd): Don't delete the current block if no
block has been selected. In that case, just insert the output.
2004-09-25 21:39:11 +00:00
Roland Illig
d0a8da7cef * editcmd.c (edit_ext_cmd): Replaced the old version with a new
one that uses ../src/pipethrough. The new version feeds the
	currently selected block (or an empty input) into the command
	which reduces the chance of a deadlock when the command tried
	to read from stdin. It also allows the user to insert the output
	of a command that has exited with a nonzero result. Another
	feature is that it does not use temporary files.
2004-09-25 21:34:36 +00:00
Roland Illig
8676605ad2 * pipethrough.c: Added pipethrough, a function to execute child
processes in a simple way.
	* pipethrough.h: The interface for the function.
	* pipethrough.3: The manpage (will be installed in maintainer-mode).
	* Makefile.am: Added the files to SRCS.
2004-09-25 21:21:09 +00:00
Roland Illig
771f60dac1 * complete.c: Partly reverted my last patch. I had committed it
accidentally.
2004-09-25 21:08:29 +00:00
Roland Illig
2a2b478f67 * syntax.c (this_try_alloc_color_pair): Added const qualifiers.
* editcmd.c (snprintf_p): Likewise. (edit_replace_prompt):
	Simplified the code.
2004-09-25 20:53:32 +00:00
Roland Illig
dc259a038c * widget.c (label_callback): Reverted my last change. It crashed. 2004-09-25 20:49:15 +00:00
Roland Illig
1fb7d67048 * vfs.c (_vfs_get_class): Fixed segmentation fault introduced today. 2004-09-25 19:57:20 +00:00
Roland Illig
aad0e2151b * autoconf.ac: #define _GNU_SOURCE to an empty value instead of 1,
which conflicted with src/regex.c.
2004-09-25 15:18:10 +00:00
Roland Illig
9f6a39e83f * command.c (examine_cd): Likewise. Additionally used g_strdup to
not accidentally modify an environment variable.
	* complete.c (command_completion_function): Likewise.
	(filename_completion_function): Likewise. (try_complete): Likewise.
	(variable_completion_function): Likewise.
2004-09-25 14:34:27 +00:00
Roland Illig
a3c3564d4d * syntax.c (this_try_alloc_color_pair): Added const qualifiers. 2004-09-25 14:28:10 +00:00
Roland Illig
6f34e18e3e * ftpfs.c (ftpfs_find_machine): Added const qualifier.
* mcserv.c (do_auth): Likewise.
	* utilvfs.c (is_month): Likewise. (is_time): Likewise.
	(is_week): Likewise.
	* vfs.c (_vfs_get_class): Added const qualifier.
	(vfs_prefix_to_class): Added a string length parameter to
	reduce the use of g_strdup. (vfs_split): Changes due to the
	new string length parameter.
2004-09-25 14:06:27 +00:00
Roland Illig
8b1e87523a * boxes.c (display_unit): Added const qualifier.
* file.c (check_hardlinks): Likewise.
	* find.c (find_do_view_edit): Likewise. (find_file): Likewise.
	* global.h (home_dir): Likewise.
	* main.c (get_parent_dir_name): Likewise. (init_xterm_support):
	Likewise. (OS_Setup): Likewise.
	* menu.c (create_menu): Likewise.
	* mountlist.c (xatoi): Likewise. (read_filesystem_list): Likewise.
	* poptconfig.c (poptReadDefaultConfig): Likewise.
	* popthelp.c (showHelpIntro): Likewise.
	* rxvt.c (look_for_rxvt_extensions): Likewise.
	* slint.c (has_colors): Likewise.
	* subshell.c (check_sid): Likewise.
	* user.c (check_format_var): Likewise.
	* widget.c (radio_callback): Likewise.
2004-09-25 13:46:23 +00:00
Roland Illig
f02ccb81a0 * view.c (display): Display "_\b_" correctly in both colors. 2004-09-25 02:00:25 +00:00
Roland Illig
bf256d7e04 * view.c (display): Recognize "+\bo" as a list item in nroff mode.
* view.c (hex_search): Added const qualifier.
2004-09-25 01:12:09 +00:00
Andrew V. Samoilov
c060826178 * direntry.c (vfs_s_free_entry): g_free handles NULL argument too,
no need for the comparison.
        * extfs.c (extfs_free_archive): Likewise.
            (extfs_open_archive): Likewise.
            (extfs_read_archive): Likewise.
            (extfs_remove_entry): Likewise.
            (extfs_free_entry): Likewise.
        * fish.c (fish_open_archive): Likewise.
            (fish_archive_same): Likewise.
        * ftpfs.c (ftpfs_split_url):  Likewise.
        * local.c       (local_closedir): Likewise.
        * mcserv.c (close_handle): Likewise.
        * smbfs.c (smbfs_free_bucket): Likewise.
        * tar.c (tar_read_header): Likewise.
        * undelfs.c (undelfs_shutdown): Likewise.
        * vfs.c (vfs_shut): Likewise.
2004-09-24 23:00:18 +00:00
Andrew V. Samoilov
12d24222db * edit.c (edit_clean): g_free handles NULL argument too,
no need for the comparison.
            (edit_move_backward_lots): Likewise.
        * editcmd.c (edit_set_filename): Likewise.
            (edit_replace_cmd): Likewise.
            (edit_search_cmd): Likewise.
            (edit_sort_cmd): Likewise.
            (edit_mail_dialog): Likewise.
        * syntax.c (syntax_g_free): Likewise.
            (edit_read_syntax_rules): Likewise.
2004-09-24 22:37:00 +00:00
Andrew V. Samoilov
68a7c1dfab * boxes.c (configure_vfs): g_free handles NULL argument too,
no need for the comparison.
        * cmd.c (set_panel_filter_to): Likewise.
            (do_link): Likewise.
            (quick_cd_cmd): Likewise.
        * color.c (done_colors): Likewise.
        * dialog.c (destroy_dlg): Likewise.
        * dir.c (alloc_dir_copy): Likewise.
        * ext.c (flush_extension_file): Likewise.
        * file.c (copy_file_file): Likewise.
            (panel_operate): Likewise.
        * hotlist.c (remove_group): Likewise.
            (remove_from_hotlist): Likewise.
            (done_hotlist): Likewise.
        * main.c (main): Likewise.
        * setup.c (panel_load_setup): Likewise.
        * tree.c (tree_destroy): Likewise.
            (show_tree): Likewise.
        * user.c (user_menu_cmd): Likewise.
        * utilunix.c (i_cache_add): Likewise.
            (putenv): Likewise.
        * view.c (view_done): Likewise.
            (regexp_search): Likewise.
            (normal_search): Likewise.
            (change_viewer): Likewise.
        * widget.c (label_set_text): Likewise.
            (set_label_text): Likewise.
2004-09-24 22:22:35 +00:00
Roland Illig
2448006e86 * file.c (progress_update_one): Changed parameter type from int
to off_t.

	Fixes http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=124241
2004-09-24 18:14:49 +00:00
Roland Illig
2d0ef59071 * HACKING: added Redhat to the list of bug databases. 2004-09-24 17:05:41 +00:00
Roland Illig
c1a6f6dfd0 * HACKING: added pkgsrc-wip to the list of patch sources. 2004-09-24 16:55:00 +00:00
Roland Illig
3c09855c2d * util.c (load_file_position): Fixed possible segmentation fault
when an $HOME/.mc/filepos did not contain a ';'.
2004-09-24 16:43:08 +00:00
Roland Illig
e9fcc04816 * vfs.c (mc_open): Corrected FIXME. Now the "mode" parameter is
only accessed when flags contains O_CREAT.
2004-09-24 16:03:24 +00:00
Roland Illig
d13910537a * HACKING: Summarized the functions applicable to the NULL tip. 2004-09-24 15:53:58 +00:00