Commit Graph

5860 Commits

Author SHA1 Message Date
Pavel Roskin 94e14aacfb * direntry.c (vfs_s_dump): Commented out.
* extfs.c (s_readlink): Fix return value and possible buffer
overflow.
* mcfs.c (mcfs_readlink): Fix return value.
* mcserv.c (do_readlink):  Fix possible off-by-one.
(commands): Make const array and remove needless comma.
2003-08-29 22:48:25 +00:00
Pavel Roskin 8b3b8147d7 * cmd.c (edit_symlink_cmd): Fix possible off-by-one after
readlink().
* file.c (make_symlink): Likewise.
* main.c (copy_readlink): Likewise.
* screen.c (display_mini_info): Likewise.
(chdir_to_readlink): Likewise.
* util.c (resolve_symlinks): Likewise.
2003-08-29 22:45:04 +00:00
Pavel Roskin ef9371e3fa * ftpfs.c (initconn): Use more portable initialization.
* xdirentry.h: Use safer definition of ERRNOR.
2003-08-29 22:32:21 +00:00
David Martin d1a227c55b Rewrite FTPfs and VFS options sections. 2003-08-19 10:13:11 +00:00
Pavel Roskin 807db8eda2 * lib/mc-wrapper.csh.in: Use "id" command to find the real user
id.  $USER is not reliable.
* lib/mc-wrapper.sh.in: Likewise.
Reported by Figura Peter <peterf@autus.sk>
2003-08-18 16:44:22 +00:00
Pavel Roskin d521073663 Add missing include. 2003-08-18 05:20:52 +00:00
Pavel Roskin 780609f437 * extfs/uzip.in: Fix error in parsing size of files over 9999999
bytes long.
2003-08-18 05:17:25 +00:00
Pavel Roskin 65b52a3c89 Add:
Alt-O should optionally show the current directory and move cursor down
(as in older versions).  Old functionality on files (go to "..") is not
needed.
2003-08-18 04:58:23 +00:00
Pavel Roskin ff6aed1002 * acinclude.m4 (MC_WITH_NCURSES): Fix ESCDELAY check on Solaris.
Make sure that linking succeeds.
2003-08-18 04:53:56 +00:00
Pavel Roskin 3f4d7934b3 * cmd.c (delete_cmd_local): New function. Remove file under the
cursor, regardless of marks.
* screen.c (panel_keymap): Bind it to F18.
2003-08-18 04:45:54 +00:00
Pavel Roskin df6365e737 * file.c (panel_operate_generate_prompt): Remove source
calculation, it doesn't belong here.
(panel_operate): Change arguments: drop ask_user and thedefault,
introduce force_single.  force_single changes default to the
current file and ignores selection.  Adjust all dependencies.
2003-08-18 04:35:28 +00:00
Pavel Roskin 4dd13a09ba * dir.h (file_entry): Rename "buf" to "st". Adjust all
dependencies.
2003-08-18 00:47:43 +00:00
Pavel Roskin c90321d4b4 Fix address. 2003-08-15 15:30:58 +00:00
Pavel Roskin d1a01edcf0 Actualize. Remove obsolete questions. Fix formatting. 2003-08-15 15:26:48 +00:00
Marco Ciampa a0001c6d57 Updated italian translation. 2003-08-12 08:24:53 +00:00
David Martin 4267680e52 Update. 2003-08-11 15:21:04 +00:00
Pavel Roskin 10fb3f22f6 * extfs/audio.in: Further portability fixes. Use current date
for timestamps.
Partly from Andrew V. Samoilov <sav@bcs.zp.ua>
2003-08-08 22:07:16 +00:00
Pavel Roskin 0a0ac18aae * extfs/audio.in: Fix non-POSIX constructs.
From GoTaR <gotar@poczta.onet.pl>
2003-08-08 07:58:09 +00:00
Pavel Roskin b60bc8223c Update from Andrew V. Samoilov <andrew@email.zp.ua> 2003-08-05 15:59:33 +00:00
Pavel Roskin 8c4a0aa3c0 * lib/cedit.menu: Avoid using "id -u", it doesn't work on
Solaris.  From Andrew V. Samoilov <andrew@email.zp.ua>
2003-08-02 23:01:51 +00:00
Pavel Roskin 5864284071 ftpfs defaults to anonymous login, not to user login name.
From Andrew V. Samoilov <andrew@email.zp.ua>
2003-08-02 22:45:09 +00:00
Pavel Roskin ef2c07b7c8 * main.c: Rename PanelMenu to LeftMenu. Don't assume that
LeftMenu and RightMenu are identical.
From Pavel Tsekov <ptsekov@gmx.net>
2003-08-01 20:00:28 +00:00
Pavel Roskin 90b7cbf2ea Done:
Changing directory while in the editor shouldn't affect the path where
the editor saves its files.
2003-07-31 16:38:39 +00:00
Pavel Roskin cf9acd036e * edit-widget.h: Resurrect "dir" field in WEdit to store
directory for relative filenames.

* edit.c (edit_clean): Release edit->dir.

* editcmd.c (edit_save_file): Use absolute filename.
Temporarily disable safe save and backups on remote VFS because
it doesn't work - again.
2003-07-31 16:38:07 +00:00
Pavel Roskin 81d396da33 Remove useless initialization. 2003-07-31 16:32:30 +00:00
Pavel Roskin 6867850154 Add:
Make the internal editor reentrant.  Add "edit menu file" to the editor
menu.
2003-07-31 16:27:44 +00:00
Pavel Roskin c7456a4e5d Images on VFS - better description. 2003-07-28 18:34:35 +00:00
Pavel Roskin efe37f49e7 Document --enable-charset 2003-07-28 18:28:50 +00:00
Pavel Roskin e25db8514a * ftpfs.c (login_server): Undo last change. 2003-07-28 16:17:30 +00:00
Pavel Roskin a1ce20517c * main.c: Make more variables static. 2003-07-28 16:11:44 +00:00
Pavel Roskin 58572c60da * edit.c (edit_execute_cmd): Enable user menu in mcedit. 2003-07-25 18:52:28 +00:00
Pavel Roskin c0501a8ea4 Replace ",,," with "..." 2003-07-24 21:59:45 +00:00
Pavel Roskin 1f53b0d36b Add Lithuanian translation. 2003-07-24 21:53:38 +00:00
Pavel Roskin 7f5fbac2e2 Use own private directory for making RPM package. 2003-07-23 16:24:57 +00:00
Pavel Roskin 5efb620cb8 * ftpfs.c (login_server): Fix memory leak.
(linear_abort): Close dsock before reconnect().
(ftpfs_done): Release no_proxy list.
2003-07-23 16:19:33 +00:00
Pavel Roskin 6ec35d7ceb Try /usr/src/rpm before /usr/src/redhat 2003-07-23 06:41:31 +00:00
Pavel Roskin ff9c544b88 * lib/mc.lib: Add more "end" and "home" sequences for xterm. 2003-07-23 05:48:55 +00:00
Pavel Roskin d388773779 * key.c (xterm_key_defines): Add more sequences for xterm-179 by
Thomas E. Dickey.
2003-07-23 05:44:25 +00:00
Pavel Roskin c72a1ea44c Get rid of all references to NATIVE_WIN32. 2003-07-23 03:22:32 +00:00
Pavel Roskin fe7d3b9a4e * pc: Remove. No work has been done on the PC post for years.
* README.PC: Likewise.
* Makefile.am: Adjust for the above.
* configure.in: Likewise.
2003-07-23 03:02:18 +00:00
Pavel Roskin 17a04526cf * subshell.c (pty_open_master) [HAVE_GRANTPT]: Prefer
posix_openpt() over GNU-specific getpt().  Needed for FreeBSD
5.x.  Original patch by Max Khon <fjoe@FreeBSD.org>
2003-07-21 23:33:34 +00:00
Pavel Roskin ff144aca4d * configure.in: Check posix_openpt() first and fallback to
GNU-specific getpt() only if needed.
2003-07-21 23:29:29 +00:00
Pavel Roskin 0ec650da9a * screen.c (panel_key): Redisplay ministatus if the searching
was turned off.  Reported by gotar@poczta.onet.pl
2003-07-21 04:56:56 +00:00
Pavel Roskin 67e50fcb06 * ftpfs.c (load_no_proxy_list): Fix infinitive loop if ferror().
(initconn): Reset variables if setup_passive() fails.
(open_data_connection): Set my_errno to errno before close()
syscall.
(dir_load): Optimize cd_first calculation.
2003-07-21 04:17:39 +00:00
Pavel Roskin dadbdd25e9 * editcmd.c (edit_quit_cmd): Rename to ...
(edit_ok_to_exit): ... this.  Don't stop dialog - this function
is called by the dialog code.
* editwidget.c (edit_dialog_callback): Process DLG_VALIDATE
event.  Don't exit it the user wants to continue editing.
* edit.c (edit_execute_cmd): Close the dialog - it will ask user
if necessary.
2003-07-21 03:54:47 +00:00
Pavel Roskin 7a5c9a3834 Kill another instance of using delete_file in a wrong place. 2003-07-20 23:34:29 +00:00
Pavel Roskin 9bc8df86ad * editcmd.c (edit_quit_cmd): Don't save this command in the undo
stack.  Don't force any refresh.  Don't delete unsaved files, do
it ...
* edit.c (edit_clean): ... here.  This ensures that unsaved
files from the mcedit command line are erased on Ctrl-n.
2003-07-20 23:24:25 +00:00
Pavel Roskin 0633d91f60 * editwidget.c (edit): Remove unused variable "framed". 2003-07-20 22:15:28 +00:00
Pavel Roskin 688457dc17 Put editor questions to a separate section.
Add question about colorer.
2003-07-12 01:13:37 +00:00
Pavel Roskin ad33f92572 Automake 1.7.6 has been released - use it. 2003-07-10 23:24:23 +00:00