Pavel Roskin
af86cebacd
* configure.in: Don't check if "file" can use stdin - it's
...
unused now.
2003-10-29 01:25:42 +00:00
Pavel Roskin
87206cfeb5
* ext.c (regex_check_type): Use mc_getlocalcopy() instead of
...
piping first 8k to "file". If the user selected the file, we
are likely to need the whole file. Besides, mc_getlocalcopy()
on ftpfs and fish shares file cache with other VFS operations.
(get_file_type_pipe): Remove.
(mc_doublepopen): Likewise.
(mc_doublepclose): Likewise.
2003-10-29 01:15:16 +00:00
Pavel Roskin
edce41facd
* utilvfs.c (vfs_mkstemps): New function - create temporary file
...
with the name resembling the original, but safe for scripts.
* direntry.c (vfs_s_open): Use it.
(vfs_s_retrieve_file): Likewise.
* extfs.c (extfs_open): Likewise.
* sfs.c (sfs_redirect): Likewise.
2003-10-29 00:50:36 +00:00
Pavel Roskin
77bcdc8127
* vfs.c (mc_ungetlocalcopy): Free local path here, not in class
...
implementations.
* vfs.h (struct vfs_s_class): Constify "local" argument for
ungetlocalcopy. Adjust all implementations.
2003-10-28 21:52:06 +00:00
Pavel Roskin
bb184c9c8b
Typo in the last commit.
2003-10-28 08:47:04 +00:00
Pavel Roskin
67cd859ea3
* direntry.c (vfs_s_init_class): Use our getlocalcopy for remote
...
filesystems that cache files, not for archives.
(vfs_s_getlocalcopy): Corresponding changes.
2003-10-28 08:20:30 +00:00
Pavel Roskin
8e3a0c9d65
* direntry.c (vfs_s_init_class): Improve interface to allow more
...
code reuse. Change all callers.
(vfs_s_getlocalcopy): New implementation. Don't use
mc_def_getlocalcopy(). Use vfs_s_open() to create local copy.
(vfs_s_ungetlocalcopy): New function.
* xdirentry.h: Add new field "flags" to struct vfs_s_subclass.
* extfs.c (extfs_ungetlocalcopy): Don't use
mc_def_ungetlocalcopy() in the dead branch.
* vfs.c (mc_def_getlocalcopy): Make static.
(mc_def_ungetlocalcopy): Likewise.
2003-10-28 07:09:39 +00:00
Pavel Roskin
7d16d65e35
* vfs.h: Constify some arguments for many functions.
...
* xdirentry.h: Likewise. Adjust all dependencies.
2003-10-28 02:10:33 +00:00
Pavel Roskin
5bc20fd294
* *.c: Rename functions that don't have an a prefix indicating
...
what file they are defined in. This simplifies debugging.
2003-10-28 00:57:02 +00:00
Pavel Roskin
520f6ddb6c
* vfs.c (mc_def_getlocalcopy): Use O_LINEAR when retrieving the
...
remote file. This avoids an extra temporary file.
2003-10-27 21:55:06 +00:00
Pavel Roskin
ffddff51ea
* utilunix.c: Move mc_doublepopen() and mc_doublepclose() ...
...
* ext.c: ... where they are used.
2003-10-27 21:51:48 +00:00
Pavel Roskin
4ee3f26133
* cpio.c (cpio_ungetlocalcopy): Remove.
...
* tar.c (tar_ungetlocalcopy): Likewise.
* vfs.c (mc_def_ungetlocalcopy): Add support for read-only
filesystems.
2003-10-27 21:01:00 +00:00
Pavel Roskin
0e71b37f2a
Don't include background.h if it's not needed.
...
If needed, add explanation.
2003-10-27 17:36:19 +00:00
Pavel Roskin
e829a85981
* slint.c (mc_refresh): Revert last change - it breaks screen
...
restoring on rxvt.
2003-10-27 17:34:57 +00:00
Pavel Roskin
1ddf30732b
* tree.c (tree_rmdir_cmd): Don't change to the root directory -
...
it's not needed now.
2003-10-27 17:21:13 +00:00
Pavel Roskin
2bf7ae1b6c
* win.c (check_movement_keys): Add support for Ctrl-PgDown,
...
Ctrl-PgUp, Ctrl-Home and Ctrl-End.
2003-10-27 05:59:03 +00:00
Pavel Roskin
bc455d5840
* direntry.c (vfs_s_find_inode): Only allow search from root.
...
Change second argument to superblock to prevent abuse.
2003-10-27 03:09:40 +00:00
Pavel Roskin
ad670bade6
* direntry.c (vfs_s_find_entry_tree): Eliminate buffer of fixed
...
size. Don't prepare path for vfs_s_resolve_symlink().
(vfs_s_resolve_symlink): Remove unused argument "path".
2003-10-27 02:54:59 +00:00
Pavel Roskin
cc09ee51f1
Typo fixes.
2003-10-27 01:55:50 +00:00
Pavel Roskin
511321bcfd
* direntry.c (vfs_s_add_dots): Remove. Fix all callers.
...
(vfs_s_free_inode): Remove support for "." and ".." entries.
* ftpfs.c (dir_load): Likewise.
Support for "." and ".." entries was a hack that could make the
cache non-traversible from inodes to the root and cause infinite
loop in vfs_s_fullpath().
Reported by Frdric L. W. Meunier <lists1@pervalidus.net>
2003-10-27 01:26:18 +00:00
Pavel Roskin
290426d17a
* terms.c: Merge ...
...
* win.c: ... here.
* Makefile.am: Remove terms.c.
2003-10-26 07:02:13 +00:00
Pavel Roskin
11afe8263e
Add:
...
Add --disable-background option to disable background support.
Background support now uses pipes instead of UNIX sockets.
2003-10-26 06:50:00 +00:00
Pavel Roskin
24384e9a89
* panel.h: Fix duplication between cpanel and current_panel in
...
favor of current_panel. Ditto opanel and other_panel.
2003-10-26 06:45:59 +00:00
Pavel Roskin
bb13ad8db4
* main.c (get_current_panel): Remove.
...
(get_other_panel): Move ...
* layout.c: ... here.
2003-10-26 06:32:42 +00:00
Pavel Roskin
dca92d4941
Trivial cleanup.
2003-10-26 06:16:54 +00:00
Pavel Roskin
5b876f358d
* info.h: Don't expose WInfo internals.
2003-10-26 05:54:55 +00:00
Pavel Roskin
26e444a11c
* background.c (tell_parent): Eliminate.
...
(background_attention): Use error code instead.
* file.c (panel_operate): Exit with code 0, not 1.
2003-10-26 05:42:29 +00:00
Pavel Roskin
211ce16fac
* wtools.c: Merge mc_message() and message() into one background
...
safe function message(). Fix all callers.
2003-10-26 04:47:20 +00:00
Pavel Roskin
f9e5058942
Include global.h, not i18n.h.
2003-10-26 04:15:17 +00:00
Pavel Roskin
82688029da
* i18n.h: Include into global.h.
...
* Makefile.am: Remove i18n.h.
2003-10-26 04:11:12 +00:00
Pavel Roskin
d35cffb9d9
Clean up includes.
2003-10-26 04:03:07 +00:00
Pavel Roskin
2c458dcc52
Don't include vfs.h.
2003-10-26 03:40:23 +00:00
Pavel Roskin
7cc31809be
* tar.h: Merge into tar.c, as it doesn't provide any external
...
interface.
* Makefile.am: Remove tar.h.
2003-10-26 03:34:42 +00:00
Pavel Roskin
565d65cc7a
Suppress progress indicator from msgmerge.
...
Factorize "make distcheck".
2003-10-26 02:58:58 +00:00
Pavel Roskin
a828849d50
* vfs.h: Remove redundant declaration of init_localfs().
2003-10-26 01:51:28 +00:00
Pavel Roskin
06f9c3d0c1
Add:
...
Safe and restore file position in the viewer.
2003-10-26 01:34:47 +00:00
Pavel Roskin
189dadab90
Remove DVI test, it breaks on documentation in Russian on Debian/unstable.
2003-10-26 01:31:06 +00:00
Pavel Roskin
6f6534e721
Prepend \& to '\\ to avoid groff warning:
...
doc/ru/mc.1.in:2602: a magic token is not allowed in a name
2003-10-26 01:17:02 +00:00
Pavel Roskin
17dcf7ed78
Disable background support in minimal configuration.
2003-10-26 01:00:17 +00:00
Pavel Roskin
a08f91eb63
* background.c: Clean up includes.
...
(do_background): Set current_dlg to NULL for the child process.
* dialog.h (do_complete_refresh): Don't use we_are_background.
* file.h: Remove dependency on background.h.
* background.h: Define we_are_background. Move mc_message() ...
* wtools.h: ... here.
* key.h: Don't define we_are_background.
* slint.c (mc_refresh): Use current_dialog instead of
we_are_background to fix compilation without WITH_BACKGROUND.
2003-10-26 00:58:14 +00:00
Pavel Roskin
6cc1e873ef
Fix missing comma in the last commit.
2003-10-25 23:48:30 +00:00
Pavel Roskin
b59eaab4ad
* extraconf.h: Don't define HAVE_GRANTPT forcedly if grantpt()
...
wasn't found. Don't define HAVE_CRYPT, it's unused now.
2003-10-25 22:44:00 +00:00
Pavel Roskin
5a0b2b0806
* mcserv.c: Don't use HAVE_CRYPT from extraonf.h.
...
* samba/include/includes.h: Likewise.
2003-10-25 22:37:08 +00:00
Pavel Roskin
4a02cae0e1
* configure.in: Remove check for socketpair(). Add new option
...
--enable-background.
* extraconf.h: Don't define WITH_BACKGROUND.
2003-10-25 22:25:51 +00:00
Pavel Roskin
ec7f14f929
* background.c (do_background): Use pipe() instead of less
...
portable socketpair(). Close comm[0] in the child.
2003-10-25 22:15:52 +00:00
Pavel Roskin
d999b186f1
* wtools.c (mc_message): Fix argument expansion.
2003-10-25 22:13:01 +00:00
Pavel Roskin
00d12acfb3
* background.c: Leave only code used when WITH_BACKGROUND is
...
defined. The rest goes ...
* wtools.c: ... here.
2003-10-25 21:54:55 +00:00
Pavel Roskin
50045218ab
Remove unneeded includes in ../src
2003-10-25 21:34:57 +00:00
Pavel Roskin
67e8519191
* background.c: Remove mymsg.
2003-10-25 21:15:54 +00:00
Pavel Roskin
f75d4598eb
* util.c (msglen): Constify first argument.
...
* wtools.c (query_dialog): Constify string argments.
(create_message): New function, forked from message().
(message): Return void. Allocate memory dynamically.
* wtools.h: Eliminate D_INSERT. Adjust all users.
2003-10-25 21:12:05 +00:00