Commit Graph

6648 Commits

Author SHA1 Message Date
Andrew V. Samoilov
8700126200 Add wait 2004-12-02 10:47:14 +00:00
Andrew V. Samoilov
557dfdc7a1 * file.c (make_symlink): Constify r. 2004-12-02 10:46:21 +00:00
Andrew V. Samoilov
26e400227a * editcmd.c (edit_replace_prompt): Fix warning with 'unused' label_len. 2004-12-02 08:31:52 +00:00
Andrew V. Samoilov
3881b6e2b4 Use proper format string parameter for size in file dialogs.
Update for 4.6.1-pre2.
2004-12-02 08:26:55 +00:00
Andrew V. Samoilov
b5a5f9f5f1 * file.c (copy_dir_dir): Code cleanup (removal of unnecessary goto,
redundant comment, indentation).

* filegui.c (init_replace): Use off_t instead of int for file
sizes. Use proper format string parameter for size.
2004-12-02 06:25:57 +00:00
Andrew V. Samoilov
65f99d5493 * tar.c (tar_read_header): Skip over records containing
incremental tar specific info.
2004-12-01 08:43:25 +00:00
Roland Illig
badf915e39 * editcmd.c: Introduced a type edit_getbyte_fn to get rid of
the many function type casts.
2004-12-01 00:55:17 +00:00
Andrew V. Samoilov
d48d44dabd * widget.c (listbox_drawscroll): Fix declaration of `slow_terminal'.
(listbox_new): Likewise.
2004-11-30 05:54:36 +00:00
Andrew V. Samoilov
bc3b3e9d29 Add comment to last changelog entry 2004-11-30 04:37:09 +00:00
Andrew V. Samoilov
e7b96a4600 * fish.c(fish_file_store): Fix typo fix 2004-11-29 20:15:22 +00:00
Andrew V. Samoilov
d50dc18be0 * main.c (midnight_callback): Make the the keystrokes the invoke
select_cmd(), unselect_cmd() and reverse_selection_cmd () work
even if the command prompt is turned off.
2004-11-29 20:11:07 +00:00
Andrew V. Samoilov
0fdf2a6e6d * direntry.c (vfs_s_readlink): Correctly calculate link length. 2004-11-29 18:44:49 +00:00
Andrew V. Samoilov
a2bcbdb52c * fish.c (fish_file_store): Check write() more carefully.
(PREFIX): Fix memory leak.
        (fish_##name): Likewise.
        (fish_chown): Likewise.
2004-11-29 12:45:42 +00:00
Andrew V. Samoilov
0cd8f81bdc * Makefile.am: Use AM_CPPFLAGS for path to mc-slang includes.
* slmisc.c (SLang_Version): Declare const. Use SLANG_VERSION for version
        number.
        * include/slang.h (SLang_Version): Declare const.
2004-11-29 11:11:47 +00:00
Andrew V. Samoilov
5f926f02a6 * ext.c (regex_check_type): Optimize memory usage. 2004-11-26 15:47:31 +00:00
Andrew V. Samoilov
09180a901a * direntry.c (vfs_s_open): Fix memory leak.
(vfs_s_retrieve_file): Check write() return more carefully.
2004-11-26 12:00:36 +00:00
Andrew V. Samoilov
fd1fbef2dd * execute.c (shell_execute): Optimize memory usage. 2004-11-26 11:14:07 +00:00
Roland Illig
2a80bd15a2 * Makefile.am: Removed unused occurence of man_MANS. 2004-11-23 23:04:18 +00:00
Roland Illig
09fcf5903c * pipethrough.3: Fixed use of mandoc macros according to a
suggestion of Eric S. Raymond.
2004-11-21 21:13:43 +00:00
Andrew V. Samoilov
4ccc6e511c * help.c (help_event): Fix offset of event area for mouse click. 2004-11-19 21:04:04 +00:00
Roland Illig
2d3fef18e5 * Makefile.am: Excluded pipethough.3 from the distribution
as it is currently unused.
2004-11-19 14:17:19 +00:00
Andrew V. Samoilov
17ec1c5476 * user.c (execute_menu_command): Revert last changes. Execute
shell_execute() with flag EXECUTE_HIDE to prevent recording
        in ~/.bash_history.
        * execute.h: Add EXECUTE_HIDE flag. It's used to prefix the command
        with a space.
        * execute.c (shell_execute): Prefix the command with a space, if define
        EXECUTE_HIDE flag.
2004-11-18 17:47:55 +00:00
Andrew V. Samoilov
82f580f857 * syntax.c (get_args): Use in "args_size" argument instead of
in out "argc".  Return number of found entries.
        Adjust all callers.
2004-11-18 10:02:33 +00:00
Roland Illig
1eab2f63b7 * screen.c (do_search): Ignore the backspace key on empty
quick-search.

	From Egmont Koblinger <egmont * uhulinux hu>
2004-11-16 23:54:15 +00:00
Roland Illig
48690761d6 * extfs/patchfs.in: Allow extraction and deletion of patches
whose filenames start with "../" or "./".
2004-11-16 23:00:40 +00:00
Roland Illig
57708c91cc * user.c (execute_menu_command): Prefix the command with a space
to prevent recording in ~/.bash_history.
2004-11-16 22:41:00 +00:00
Andrew V. Samoilov
f22b5d749f * syntax.c (get_args): Use "argc" to check "args" size.
(edit_read_syntax_rules): Add new parameter "argc" (size of the
        "args" buffer) to prevent buffer overflow.
2004-11-16 19:46:46 +00:00
Andrew V. Samoilov
319cdb81bc * acinclude.m4: Fix compiling mc with system slang on FreeBSD. 2004-11-16 19:23:40 +00:00
Roland Illig
01867b4001 * TODO: Checked the remaining vfs/extfs shell scripts and
removed them from the TODO list. This was the last item
	in the section "Before 4.6.1", so I deleted the whole
	section.
2004-11-16 18:03:56 +00:00
Roland Illig
48f13535a1 * vfs.h: Changed types for mc_chmod, mc_chown, mc_mknod to mode_t,
uid_t, gid_t, and dev_t where appropriate.
2004-11-16 16:49:37 +00:00
Roland Illig
6bbbeb77b4 * vfs.c: Changed types for mc_chmod, mc_chown, mc_mknod to mode_t,
uid_t, gid_t, and dev_t where appropriate.

	Patch extended by Roland Illig.
2004-11-16 16:16:08 +00:00
Andrew V. Samoilov
1bb010e66e Revert last changes 2004-11-16 12:50:40 +00:00
Andrew V. Samoilov
f2d94122cf * vfs.h, vfs.c: mc_chmod(), mc_chown() parameter type cleanup. 2004-11-16 12:41:34 +00:00
Roland Illig
8d41d94d44 * file.c: Code cleanup (mostly indentation). 2004-11-15 23:32:02 +00:00
Roland Illig
b7fa9f0e5f * vfs.c: fix MC_NAMEOP macro calls to use the canonicalized path. 2004-11-15 22:55:50 +00:00
Andrew V. Samoilov
f7cacb883f * user.c (expand_format): Return % with followed character if it
without special meaning.
2004-11-12 11:56:21 +00:00
Roland Illig
d3204db4e0 * popthelp.c (showHelpIntro): The basename of argv[0] starts after
the last slash in argv[0], not after the first.
2004-11-11 17:37:20 +00:00
Andrew V. Samoilov
8d4cf30242 * regex.c: Define HAVE_WCTYPE_H to 0 if not defined to fix compilation. 2004-11-11 10:02:18 +00:00
Roland Illig
830f64d719 * Makefile.am: Excluded pipethough.{c,h} from the distribution
as they are currently unused.
2004-11-10 17:42:42 +00:00
Roland Illig
de3bc90f37 * audio.in (audiofs_list): Fixed quoting issue.
(audiofs_copyout): Likewise.
	* uar.in (mcarfs_copyin): Likewise.
	* uha.in (mchafs_copyout): Likewise.
	* ulha.in (mc_lha_fs_run): Likewise.
2004-11-10 16:08:00 +00:00
Andrew V. Samoilov
bfee231c11 * editdraw.c (edit_status): Don't output extra characters on the
status line.
        (print_to_widget): Don't use addch() with negative offset to skip
        over excessive columns. Output only those columns that should be
        displayed on the screen.
2004-11-10 14:11:27 +00:00
Andrew V. Samoilov
042017791e If not defined macros HAVE_WCTYPE_H, define it for clean compilation. 2004-11-10 13:48:23 +00:00
Andrew V. Samoilov
852cdfb00b * hotlist.c (unlink_entry): Add missed brackets.
(add_new_entry_cmd): Fix memory leaks and double free()s.
       (add2hotlist_cmd): Eliminate static label_string.
2004-11-10 11:02:23 +00:00
Roland Illig
188b970477 * editcmd.c (edit_replace_prompt): Fixed codepage conversion bug
introduced in on 2004-09-25 by me.
2004-11-10 06:50:50 +00:00
Andrew V. Samoilov
dd2bc78a60 * hotlist.c (add_new_entry_cmd): Filter out a possible password
dialogs.
        (add2hotlist_cmd): Likewise.
2004-11-09 19:08:10 +00:00
Andrew V. Samoilov
f7cf6a4928 * sldisply.c (SLtt_delete_nlines): Add boundary check.
(forward_cursor): Remove unneeded boundary check.
        (tt_write): Remove unneeded cast.
       * sldisply.c: Use tt_write() instead of tt_write_string() for
       hardcoded string literals.
2004-11-09 17:16:51 +00:00
Andrew V. Samoilov
9bf6911b00 * util.c (strip_password): Fix bug - don't delete path from url. 2004-11-09 12:30:29 +00:00
Andrew V. Samoilov
dce56e8421 * include/slang.h (SLang_Version): Delete const qualifier for
compatibility with system slang library.
* slmisc.c: Likewise.
* sldisply.c (tt_sprintf): Import last changes from libslang-current.
Add code to check for a buffer overflow.
(tt_printf): Likewise.
(forward_cursor): Likewise.
2004-11-08 21:00:29 +00:00
Andrew V. Samoilov
a309faa45c * filegui.c (file_mask_dialog): Fix memory leak. 2004-11-08 20:10:33 +00:00
Andrew V. Samoilov
f5afae1368 * include/slang.h (SLang_Version): Declare const.
* slmisc.c: Add SLang_Version.
2004-11-08 16:47:29 +00:00