Andrew V. Samoilov
ad0767356f
* man2hlp.c (main): Don't crash if called without argument(s).
...
Make `buffer' char pointer.
2002-02-28 14:12:34 +00:00
Andrew V. Samoilov
3de820819f
* find.c (find_parameters): Compile content_pattern here.
...
Inform user about alformed regular expression.
(search_content): Use compiled regular expression.
(do_find): Eliminate `done'. Call regfree for compiled
content_pattern.
2002-02-28 13:50:03 +00:00
Pavel Roskin
b9e4f7c338
* chown.c (chown_cmd): Use size_trunc_len() to show the file
...
size. Eliminate c_fsize, which wasn't properly initialized.
2002-02-24 07:17:47 +00:00
Pavel Roskin
7346c6f93e
* man2hlp.c (string_len): Don't exclude characters with codes
...
above 128 from the string length.
2002-02-22 05:54:00 +00:00
Andrew V. Samoilov
c13770201f
* ext.c (exec_extension): Use "#! /bin/sh".
2002-02-21 14:37:51 +00:00
Pavel Roskin
8c9fc66db0
* background.c (background_attention): Cast pointer to long
...
instead of int because it's unsafe of 64-bit systems.
* main.c (init_xterm_support): Likewise.
2002-02-21 01:49:29 +00:00
Pavel Roskin
6c67d1918c
* utilunix.c (canonicalize_pathname) [__QNX__]: Fix detection
...
of Qnet names. Disable support of Qnet names under QNX Netrino.
Reported by Maurizio Rossi <MRossi@system-group.it>
2002-02-18 22:31:56 +00:00
Pavel Roskin
2b7cf88d85
* global.h: Include unix.h under "classical" QNX.
...
* subshell.c: Don't include unix.h.
* utilunix.c: Likewise.
2002-02-18 21:54:27 +00:00
Andrew V. Samoilov
455e64673e
* main.c (update_one_panel_widget): Call ftpfs_flushdir().
2002-02-07 19:24:44 +00:00
Pavel Roskin
5257da5f83
* key.c [USE_NCURSES] (get_key_code): Ignore KEY_RESIZE.
...
* layout.c [USE_NCURSES] (flag_winch): Don't call
low_level_change_screen_size() from signal handler.
From Thomas Dickey <dickey@herndon4.his.com>
2002-02-06 05:23:50 +00:00
Pavel Roskin
9a67ad6ebf
* screen.c (format_file): Add a new parameter (size of the
...
output buffer) to prevent buffer overflow on very wide
terminals.
From Thomas Dickey <dickey@herndon4.his.com>
2002-02-06 05:14:16 +00:00
Andrew V. Samoilov
aa2832dff9
* util.c [!HAVE_TRUNCATE] (truncate): Close fd if my_ftruncate
...
fails.
* util.c [HAVE_CHARSET] (is_printable): Eliminate printable.
* setup.c [HAVE_CHARSET] (load_setup): Don't use
init_printable_table().
* charset.c (printable): Removed.
(init_printable_table): Removed.
2002-02-04 18:09:42 +00:00
Andrew V. Samoilov
ce7bae4dd7
* file.c (recursive_erase): Use mc_closedir() if mc_lstat()
...
fails. Eliminate goto.
(erase_dir): Eliminate goto.
(erase_dir_iff_empty): Likewise.
2002-01-30 11:15:39 +00:00
Andrew V. Samoilov
4b84517072
* charsets.c (translate_character): Use ICONV_CONST.
2002-01-29 15:10:00 +00:00
Andrew V. Samoilov
3cb3d285df
* dir.c (handle_dirent): Use MSG_ERROR.
2002-01-29 08:10:36 +00:00
Pavel Roskin
3ecaa166e8
* screen.c: Don't try to paint anything if width is 0 or less.
...
Reported by Pawel Sakowski <pawel@sakowski.eu.org>
2002-01-22 23:37:41 +00:00
Pavel Roskin
34fe9abd28
* screen.c: Make functions static whenever possible. Remove
...
unused functions.
* panel.h: Remove corresponding declarations.
2002-01-22 23:16:21 +00:00
Pavel Roskin
e5c6976b15
* util.c: Move replacements for permission bits ...
...
* fs.h: ... here. Add more replacements.
* global.h: Include direct.h only with MSVC.
2002-01-22 01:23:18 +00:00
Pavel Roskin
93fd1572a5
* main.c: Include "drive.h", not <drive.h>, do it after panel.h.
...
Use _OS_NT as the condition for including drive.h.
* screen.c: Use _OS_NT as the condition for including drive.h.
2002-01-22 00:30:51 +00:00
Pavel Roskin
22b2813349
* global.h [_OS_NT]: Include io.h, direct.h and windows.h.
...
Don't redefine struct timeval.
2002-01-22 00:24:36 +00:00
Pavel Roskin
af3bb307d1
* fs.h [_MSC_VER]: Use dirent provided by glib.
2002-01-21 23:09:07 +00:00
Pavel Roskin
d99d279148
* global.h [!HAVE_SYS_TIME_H]: Provide a replacement for struct
...
timeval.
2002-01-21 22:46:22 +00:00
Pavel Roskin
d9c035d2c2
Fixed #elif.
2002-01-21 21:29:55 +00:00
Pavel Roskin
7b8b4394d5
* findme.c: Respect HAVE_UNISTD_H.
...
* popt.c: Likewise.
2002-01-21 21:04:44 +00:00
Pavel Roskin
a504067e6c
* global.h: Fallback to sys/utime.h if utime.h is missing.
2002-01-21 20:57:31 +00:00
Pavel Roskin
3a9692b680
* global.h: Provide fallbacks for getuid(), getgid(), geteuid()
...
and getegid().
* fs.h: Fully trust HAVE_DIRENT_H.
* complete.c: Don't include dirent.h directly, fs.h takes care
of it.
* file.c: Likewise.
* filegui.c: Likewise.
* main.c: Likewise.
* treestore.c: Likewise.
2002-01-21 20:47:05 +00:00
Pavel Roskin
4df07d04be
* global.h [!__GNUC__]: Define __attribute__ with one argument.
2002-01-21 19:57:48 +00:00
Pavel Roskin
3e8ada15be
* screen.c (string_file_size): Translate "UP--DIR".
...
(string_file_size_brief): Translate "SUB-DIR" and "SYMLINK".
2002-01-20 20:14:15 +00:00
Pavel Roskin
c14f6363da
* dir.c (add_dotdot_to_list): Don't use costly stat() - just put
...
realistic (i.e. bogus) data to the list.
2002-01-20 20:05:40 +00:00
Pavel Roskin
894ed9dcc6
* screen.c (string_file_size): Don't display size of ".." - it
...
may take too much time to calculate it on VFS. Show "UP--DIR"
instead.
(string_file_size_brief): Remove ".." handling - it's now done
in string_file_size(). Show "SUB-DIR" for links to directories,
"SYMLINK" for other links.
2002-01-20 19:52:11 +00:00
Pavel Roskin
73ed832576
* cmd.c: Remove OS/2 specific code.
...
* file.c: Likewise.
* main.c: Likewise.
2002-01-17 07:23:50 +00:00
Pavel Roskin
030d1bf2ad
* main.h: Remove dead declarations.
...
* setup.c: Remove defunct extension alignment support.
* util.c: Likewise.
* util.h: Likewise.
2002-01-17 07:17:54 +00:00
Pavel Roskin
03f801b0f2
* main.c: Remove unused toggle_* functions.
2002-01-17 06:56:22 +00:00
Pavel Roskin
ff7208e93b
* dir.c: Show backups by default.
2002-01-17 05:42:00 +00:00
Andrew V. Samoilov
7d88c34470
* file.c (copy_dir_dir): Check the destination is a directory
...
if it exists. Reported by Thomas <metaf4@pseudonym.org>.
2002-01-15 08:01:29 +00:00
Andrew V. Samoilov
21c015b2f8
* util.c (string_perm) [S_IFDOOR]: Support Solaris doors.
...
screen.c (string_file_type) [S_IFDOOR]: Likewise.
2002-01-09 10:54:13 +00:00
Pavel Roskin
9e23676939
* hotlist.c (hotlist_callback): Recognize "delete" key.
2001-12-22 01:29:20 +00:00
Pavel Roskin
08cb611abf
* myslang.h [!HAVE_SYSTEM_SLANG]: Include slang/slang-mc.h to
...
simplify includes.
[HAVE_SYSTEM_SLANG]: Use angle brackets for slang.h.
2001-12-21 22:15:24 +00:00
Pavel Roskin
1e15aecb9f
* myslang.h [!HAVE_SYSTEM_SLANG]: Include slang-mc.h directly
...
to avoid relying on symlinks.
2001-12-21 20:17:22 +00:00
Pavel Roskin
5d27f706bd
* utilunix.c (init_groups): Don't return prematurely if the
...
primary group cannot be found (it can happen on Cygwin).
2001-12-18 20:00:27 +00:00
Pavel Roskin
340f689384
* dir.c (do_reload_dir): Hash-table added.
...
From Bjrn Eriksson <mdeans@algonet.se>
2001-12-11 00:30:12 +00:00
Pavel Roskin
b8eecba1d9
Comment fix. From Bjrn Eriksson <mdeans@algonet.se>
2001-12-07 02:47:04 +00:00
Pavel Roskin
27d176979b
s/crush/crash/ and other minor things.
2001-12-03 23:38:11 +00:00
Pavel Roskin
111c11418a
* dir.c (do_reload_dir): Optimize the logic - count the marks
...
and only match new entries against old entries if at least one
mark has not been transferred.
From Bjrn Eriksson <mdeans@algonet.se>
2001-12-03 21:39:41 +00:00
Pavel Roskin
acbe83ef9c
* main.c (midnight_callback): Implement "auto menus".
2001-11-29 21:03:16 +00:00
Pavel Roskin
905b9ac8f8
* layout.c: Make more variables static.
2001-11-29 20:30:50 +00:00
Pavel Roskin
d816549ab9
* cons.saver.c: Define LINUX_CONS_SAVER_C so that some parts
...
of cons.saver.h can be omitted.
* cons.saver.h: Declare nothing but constants if
LINUX_CONS_SAVER_C is defined.
2001-11-29 20:28:48 +00:00
Pavel Roskin
fa89635b51
Fully eliminate all references to HAVE_X and HAVE_GNOME.
2001-11-14 23:20:37 +00:00
Pavel Roskin
d62c8ee427
* dir.c (do_sort): Correctly handle the case when there is no
...
".." entry (i.e. panelized mode).
2001-11-14 20:32:47 +00:00
Pavel Roskin
e50abb3f80
* view.c (do_view_init): Make sure _file is not
...
an empty string before mc_stat and mc_open.
Memory leak fixed.
2001-11-14 20:15:36 +00:00