Commit Graph

3630 Commits

Author SHA1 Message Date
Andrew V. Samoilov
b6b8cd0433 * edit_key_translator.c (cooledit_key_map):
Add C-k, CK_Delete_To_Line_End.

* edit.c (user_menu): Don't assign block_file twice.
2001-11-16 07:23:36 +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
5fac744c29 * chmod.c: Remove all occurences of HAVE_X.
* drive.c: Likewise.
2001-11-14 23:13:53 +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
Pavel Roskin
79dd5b30cb * panelize.c (do_external_panelize): Re-sort the panel according
to the current settings.
2001-11-14 20:06:08 +00:00
Pavel Roskin
86213a2be0 * find.c (do_find): Re-sort the panel according to the current
settings when doing panelizing.
2001-11-14 19:59:31 +00:00
Pavel Roskin
47f87cba24 * dir.c (sort_type_to_name): Remove, it's unused in the text
edition.
(sort_name_to_type): Likewise.
* dir.h: Adjust to match.
2001-11-14 18:57:24 +00:00
Pavel Roskin
358abbe0df * mouse.c: Add default cases to fix warnings with gcc-2.96. 2001-11-14 18:27:45 +00:00
Pavel Roskin
721ae83fff * undelfs.c: Use ext2_ino_t to avoid warnings with e2fsprogs
1.20 and newer.
2001-11-14 17:57:06 +00:00
Pavel Roskin
d85bffa7b2 * acinclude.m4 (MC_UNDELFS_CHECKS): Check for ext2_ino_t,
fallback to ino_t for e2fsprogs version 1.19 and older.
2001-11-14 17:54:44 +00:00
Andrew V. Samoilov
9d4e2fcd1c * samba/acconfig.h: Remove WITH_SYSLOG. 2001-11-13 12:19:57 +00:00
Andrew V. Samoilov
4dd95908c0 * samba/lib/system.c (sys_chroot): Removed.
* samba/configure.in: Remove RUNPROG.  Don't check
for chroot and execl functions.
Remove syslog logging support.
Add --with-codepagedir and --with-configdir from samba 2.2.2.

* samba/Makefile.in: Use configdir and codepagedir.
2001-11-13 11:42:53 +00:00
Pavel Roskin
b03032c29b * main.c: Remove support for subshell debugging. Firstly, it
was broken.  Secondly, every developer should be able to add
this code when needed.  Finally, there is no need to expose the
option to the user and translate it into 30 languages.
* subshell.h: Remove debug_subshell.
* subshell.c: Likewise.
2001-11-12 22:09:40 +00:00
Andrew V. Samoilov
5f152d9ef0 * mad.h: Enable glib support.
* mad.[ch] (mad_get_current_dir): New function to use instead
of g_get_current_dir.
(mad_tempnam): Add file and line parameters.
(mad_alloc0): Make file parameter const.
(mad_realloc): Likewise.
(mad_strdup): Likewise.
(mad_strndup): Likewise.
(mad_free): Likewise.
(mad_finalize): Likewise.
2001-11-12 07:32:55 +00:00
Pavel Roskin
992cb980de * Make-mc.in (SAMBA_DIST): Remove lib/getsmbpass.c. 2001-11-08 23:53:27 +00:00
Andrew V. Samoilov
3964ef8d3c * cmd.c (guess_message_value): Make val static const array.
(smblink_cmd) [!WITH_SAMBA]: Eliminated.
2001-11-08 07:25:16 +00:00
Andrew V. Samoilov
16d1473204 * slint.c (slang_reset_softkeys): Make display static const
array.  Use sizeof (display) - 1 instead of strlen display.
(color_terminals): Make static const array.
(key_table): Make const.

(dealloc_color_pairs) [HAVE_MAD]: New function.  Release
memory allocated in try_alloc_color_pair.
(slang_shutdown) [HAVE_MAD]: Call dealloc_color_pairs.
(try_alloc_color_pair): Move struct c outside function.
2001-11-07 13:35:57 +00:00
Andrew V. Samoilov
35db7bf645 * dlg.c (add_widget): Check for what is not NULL
before everything else.
2001-11-07 12:15:11 +00:00
Andrew V. Samoilov
51b1972843 * edit.c (edit_reload): destroy_dlg g_free()s widgets, so
g_malloc/g_free have to be used.
	(edit_init): Ditto.  Eliminate st.
2001-11-07 08:43:15 +00:00
Fatih Demir
1b6e973474 Updated. 2001-11-06 18:18:20 +00:00
Andrew V. Samoilov
d3579ce57b (edit_load_cmd): input_dialog returns g_malloc(ed) string,
so g_free has to be used.
(edit_save_block_cmd): Likewise.
(edit_insert_file_cmd): Likewise.
(edit_sort_cmd): Likewise.
(edit_save_as_cmd): Likewise. Memory leak fixed.
2001-11-06 08:52:13 +00:00
Andrew V. Samoilov
301c38b445 (edit_load_cmd): input_dialog returns g_malloc(ed) string,
so g_free has to be used.
(edit_save_block_cmd): Likewise.
(edit_insert_file_cmd): Likewise.
(edit_sort_cmd): Likewise.
(edit_save_as_cmd): Likewise. Memory leak fixed.
2001-11-05 13:24:18 +00:00
Andrew V. Samoilov
b3f9ba7f98 * smbfs.c (smbfs_add_dots): New function. Insert a "." and ".."
entries into the linked list.
(smbfs_loaddir): Call smbfs_add_dots for shares or servers.
(smbfs_get_free_bucket): Eliminate utime.
(fake_share_stat): Make path const.

* samba/configure.in: Don't check whether getpass
should be replaced.
2001-11-05 13:16:17 +00:00
Andrew V. Samoilov
328cbcb954 * edit.h (edit_execute_cmd): Declare it here.
* edit.c: Remove edit_execute_cmd declaration.
(edit_execute_cmd): Use edit_print_string instead of edit_printf.

* editcmd.c:  Remove edit_execute_cmd declaration.
(edit_search_dialog): Eliminate tsearch_text.
(edit_search_cmd): edit_search_dialog gives g_malloc()ed exp.
Use g_strdup/g_free instead of strdup/free.
(edit_mail_dialog): quick_dialog use g_strdup, so g_free
must be used.

* bookmark.c (book_mark_clear): Eliminate rend.
It's only written but never read.
(book_mark_flush): Likewise.
(book_mark_inc): Likewise.
(book_mark_dec): Likewise.
2001-11-05 09:23:05 +00:00
Andrew V. Samoilov
dd5ccea5d6 * vfs.c (mc_return_cwd): Memory leak fixed. 2001-11-02 18:18:14 +00:00
Peteris Krisjanis
4a54959e90 U 2001-11-01 21:06:24 +00:00
Andrew V. Samoilov
a802b107ae * samba/smblib/pwd_cache.c (pwd_read): Commented out.
* samba/Makefile.in (SAMBAFILES): Remove lib/getsmbpass.o.
* samba/lib/getsmbpass.c: Removed.
2001-11-01 13:31:52 +00:00
Andrew V. Samoilov
ddcd0ee421 * samba/smblib/pwd_cache.c (pwd_read): Commented out.
* samba/Makefile.in (SAMBAFILES): Remove lib/getsmbpass.o.
* samba/lib/getsmbpass.c: Removed.
2001-11-01 13:12:24 +00:00
Andrew V. Samoilov
2cc50a14d6 Don't include "tcputil.h".
(loaddir): Symplify.
(fake_share_stat): Declare server_url const.
Use "%4o" for st_mode.
(fake_server_stat): Likewise.  Return -1 if server_list != True.
2001-10-30 15:24:01 +00:00
Andrew V. Samoilov
0b88e8d6ce (myhostname): Declare extern.
(get_master_browser): Declare ipzero extern. By drk@sgi.com.
http://bugzilla.gnome.org/show_bug.cgi?id=60933
2001-10-30 14:40:46 +00:00
Andrew V. Samoilov
a04a0a6b4b * smbfs.c: Include <config.h> before everything else. 2001-10-30 12:20:11 +00:00
Andrew V. Samoilov
a9b290f926 * cpio.c (cpio_read_bin_head): Release name if mc_read fails.
(cpio_read_crc_head): Likewise.
2001-10-30 11:42:44 +00:00
Pavel Roskin
3fe616ace4 * lib/mc.ext.in: Add support for Netpbm files. 2001-10-30 08:08:04 +00:00
Andrew V. Samoilov
1cd0a043a7 * charsets.c (load_codepages_list): Use glib memory allocation
functions.
(free_codepages_list) [HAVE_MAD]: New function to release
memory allocated in load_codepages_list.
* charsets.h: Declare free_codepages_list.

* main.c [HAVE_CHARSET]: Include charsets.h.
(main) [HAVE_MAD && HAVE_CHARSET]: Call free_codepages_list.
(program_name): Commented out.
2001-10-29 13:40:00 +00:00
Pavel Roskin
3b32c84134 Add .deps 2001-10-29 06:27:31 +00:00
Marco Ciampa
69fa768d00 *** empty log message *** 2001-10-26 16:11:30 +00:00
Andrew V. Samoilov
66600cad98 * TODO: Typo fixed 2001-10-26 11:32:41 +00:00
Andrew V. Samoilov
58f1577542 * key.c (push_char): Fix buffer length calculation.
By drk@sgi.com.
http://bugzilla.gnome.org/show_bug.cgi?id=60932

(define_sequence): Likewise.
(key_define_t): Add const declaration.
2001-10-26 10:21:25 +00:00
Peteris Krisjanis
9bdfa6d833 U 2001-10-26 01:33:21 +00:00
Christophe Merlet
3f89da54f7 Updated French translation. 2001-10-25 20:32:12 +00:00
Andrew V. Samoilov
888a4f073b * cpio.c (cpio_read_crc_head): Fix buffer overflow.
(cpio_read_oldc_head): Likewise. By drk@sgi.com.
http://bugzilla.gnome.org/show_bug.cgi?id=60933

* (cpio_read_oldc_head): Release name if mc_read fails.
2001-10-25 14:24:29 +00:00
Andrew V. Samoilov
1ff74e7a5b * slang/slvideo.c (SLtt_set_color): Eliminate C++ comments.
http://bugzilla.gnome.org/show_bug.cgi?id=60935
By drk@sgi.com.
2001-10-25 13:32:14 +00:00
Andrew V. Samoilov
3767e8e5df * tcputil.c (rpc_get): Add missing va_end()s. Fix memory leaking. 2001-10-25 07:57:15 +00:00
Andrew V. Samoilov
fcce6d2bb0 * doc/mc.1.in: Document "%p" macro. 2001-10-25 06:49:39 +00:00
Pavel Roskin
8644c630f0 * configure.in: Move AC_FUNC_MMAP before it's used indirectly.
Allow using --without-mmap.
* INSTALL: Document --without-mmap.
2001-10-25 03:46:59 +00:00
Christian Rose
721babff37 2001-10-24 Christian Rose <menthos@menthos.com>
* sv.po: Updated Swedish translation.
2001-10-24 13:11:48 +00:00
Stanislav Visnovsky
dc2bfe78e7 2001-10-24 Stanislav Visnovsky <visnovsky@nenya.ms.mff.cuni.cz>
* sk.po: Updated Slovak translation.
2001-10-24 11:12:24 +00:00
Andrew V. Samoilov
91a56f5470 * configure.in: Resurrect ALL_LINGUAS test, to allow specify list
of languages to be installed by setting env variable before
configure. If it is empty, it defaults to full list.
By Alex Tkachenko <alex@bcs.zp.ua>.
2001-10-24 08:38:03 +00:00
Andrew V. Samoilov
a918318c9d * smbfs.h: Declare smbfs_set_debug. 2001-10-24 08:16:16 +00:00