- 06 Feb, 2011 1 commit
-
-
Chris Allegretta authored
* files.c (write_file) - Fix problems with writing the backup file (albeit interactively) with new function prompt_failed_backupwrite(), allows more secure handling of problems with failing to write the backup file compared to 'allow_insecure_backup'. * winio.c (edit_redraw): Removed unused variable git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4526 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 11 Nov, 2010 1 commit
-
-
Chris Allegretta authored
* Add check for RESTRICTED mode back to speller, suspend and insert file routines, since adding key bindings broke the fact that they should be disabled in restricted mode. Fixes Savannah bug 31625 reported by Charlie Somerville. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4519 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 24 Jun, 2010 1 commit
-
-
Chris Allegretta authored
Add more inseure backup checks to that strange cases like with ACLs will work with allow_insecure_backup. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4509 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 20 Jun, 2010 1 commit
-
-
Chris Allegretta authored
* New option allow_insecure_backup, allows the previous security fixes for backup files to be overridden if you're really positive you want to. Fixes Savannah bug 29732 by Brian Szymanski <skibrianski>. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4508 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 22 May, 2010 1 commit
-
-
Chris Allegretta authored
* files.c (write_file): Don't even try to chown() the backup file unless we're root, since it's probably going to fail if we're editing a file we don't own. Fixes Savannah bug 29514: [nano 2.2.2] backup should ignore chown errors. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4507 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 13 Apr, 2010 2 commits
-
-
Chris Allegretta authored
* files.c (wirte_file): Don't set current_stat when tmp == TRUE, check whether current_stat is set when trying to use it, and don't do the modification check if the filename changed, since we have no way of knowing about it in that case. Fixes Savannah bug 29392, reported by Mike Frysinger. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4500 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
Chris Allegretta authored
* text.c (do_alt_speller): Skip invoking the alt speller if the file size is 0 bytes. Fixes Savannah bug 29393 reported by Mike Frysinger. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4499 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 09 Apr, 2010 2 commits
-
-
Chris Allegretta authored
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4497 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
Chris Allegretta authored
* files.c (do_writeout): Better security fixes for backup file writing, mangled from submission by Dan Rosenberg <dan.j.rosenberg at gmail>. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4496 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 07 Apr, 2010 2 commits
-
-
Chris Allegretta authored
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4495 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
Chris Allegretta authored
* files.c (do_writeout): Previous fixes should not cause a crash when saving a new file. Discovered by Mike Frysinger <vapier@gentoo.org>. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4494 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 06 Apr, 2010 2 commits
-
-
Chris Allegretta authored
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4492 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
Chris Allegretta authored
file when its owner doesn't match the edited file. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4491 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 02 Apr, 2010 1 commit
-
-
Chris Allegretta authored
* files.c (do_writeout): Expand modification check to include both the original file's device ID and inode number as reasons to warn the user that the file has been modified. Based on security article on nano by Dan Rosenberg. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4490 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 20 Mar, 2010 3 commits
-
-
Chris Allegretta authored
* nano.c (page_stdin et al): Don't attempt to reset/reopen the terminal settings when reading stdin if it was aborted with SIGINT. May fix Savannah bug 29114 reported by Mike Frysinger. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4489 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
Chris Allegretta authored
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4486 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
Chris Allegretta authored
smooth scroll mode, as previous fixes would otherwise cause the cursor to not really be moved to the stop of the screen. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4485 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 07 Mar, 2010 1 commit
-
-
Chris Allegretta authored
* configure.ac, nano.c (handle_sigwinch): Create check for whether LINES and COLS can safely be redefined. Fixes compilation issues with cygwin, and likely with newer versions of ncurses, fixes Savannah bug 28984 repoted by Andy Koppe and Eric Oliver via mailing list. * winio.c (get_mouseinput) - fix stray semicolon in code, also reported in bug 28984. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4484 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 28 Jan, 2010 1 commit
-
-
Chris Allegretta authored
* move.c (do_page_up, do_page_down): Fix for smooth mode not preserving cusor position. Part one of fix for Savannah bug 21178 by Mike Frysinger. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4481 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 17 Jan, 2010 1 commit
-
-
Chris Allegretta authored
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4477 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 16 Jan, 2010 1 commit
-
-
Chris Allegretta authored
* nano.c (main), prompt.c (do_statusbar_input): Handle problems with an unmapped function due to key rebinding, fixes crashes on FreeBSD repoted by Eitan Adler <eitanadlerlist@gmail.com>. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4475 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 13 Jan, 2010 1 commit
-
-
Chris Allegretta authored
* files.c (do_writeout): Fix for crash / incorrect external modification warning due to earlier fix in r4467. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4474 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 12 Jan, 2010 1 commit
-
-
Chris Allegretta authored
* move.c (do_page_up, do_page_down): Fix issues with not enough scrolling down/up and cursor centering. * winio.c (edit_scroll): Remove lots of needless checking of line length for soft wrapping code. * winio.c (edit_update) - Remove extra code for when updating with old_current outside of the new buffer boundary and centering issues. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4473 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 05 Jan, 2010 1 commit
-
-
Chris Allegretta authored
* search.c (update_history) - Fix bad length check causing search crash on armel platform. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4472 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 04 Jan, 2010 1 commit
-
-
Chris Allegretta authored
* winio.c: edit_update, edit_redraw - Fix search not scrolling to the middle of the screen (reported by alpha@qzx.com) and places where we rely on maxrows but should not. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4471 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 22 Dec, 2009 1 commit
-
-
Chris Allegretta authored
* files.c (write_file): Fix compatibility with previous stat fix and tiny mode. 2009-12-22 David Lawrence Ramsey <pooka109@gmail.com> * global.c: Add new strings for forward/back in the file browser. New variables nano_forwardfile_msg and nano_backfile_msg. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4469 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 19 Dec, 2009 2 commits
-
-
Chris Allegretta authored
* files.c (is_file_writable): remove assert check for f, since it's not initialized at the time. Fixes Savannah bug 28309, reported by Zoltan Kovacs. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4468 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
Chris Allegretta authored
* src/files.c (write_file): Check stat struct exists, and if not use just obtained stat data. Fixes Ubuntu bug 471568, "reproducible crash in nano on trying to save to a file different than the one specified on the command line". git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4467 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 12 Dec, 2009 1 commit
-
-
Chris Allegretta authored
* text.c (do_delete), nano.c (do_output): Add check for length of current line before and after adding/deleting text, and do full refresh if it is now a different multiple of COLS. Also get rid of superfluous do_refresh vars now that we have edit_refresh_needed. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4462 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 09 Dec, 2009 2 commits
-
-
Chris Allegretta authored
* global.c (shortcut_init), browser.c (do_browser): Fix M-W not being bound to research in either main menu or browser. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4461 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
Chris Allegretta authored
* files.c (read_file) - Add parameter for whether we should even try to check file writability, as the message is useless when we're inserting into an existing buffer. Fixes Savannah bug 28219. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4460 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 07 Dec, 2009 1 commit
-
-
Chris Allegretta authored
* global.c (shortcut_init): Many fixes for keybindings code oversights, including restore page up/down and GotoDir to browser, * browser.c (do_browser): Fix breaking out of a submenu (e.g. gotodir) breaks out of browser altogether. * doc/nanorc.sample.in: Add missing entries for fortran/ObjC/OCaml entries. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4459 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 03 Dec, 2009 1 commit
-
-
Chris Allegretta authored
* global.c (shortcut_init) - Remove help shortcut from help shortcut list :-) Tweaked to reorder exit shortcut to end of list to not mess up prev/next shortcut symmetry. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4458 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 02 Dec, 2009 1 commit
-
-
Chris Allegretta authored
* text.c (add_undo, do_undo, do_redo) - Do not execute cases for SPLIT when DISABLE_WRAPPING is defined. Fixes Savannah bug 28151 (anon). git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4455 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 01 Dec, 2009 2 commits
-
-
Chris Allegretta authored
* Update documentation for 2.2 features including sample nanorc file, texinfo file, man pages, UPGRADE file, and update copyright noticed for the current year. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4453 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
Chris Allegretta authored
* chars.c, file.c - Better handle unused results for things like mbtowc(), new macro IGNORE_CALL_RESULT. 2009-12-01 Chris Allegretta <chrisa@asty.org> * global.c (shortcut_init) - Remove redundant entries for ^Y/^V reported by Christian Weisgerber. * doc/man/nanorc.5 - Fix typo in Meta documentation, reported by gibboris@gmail.com. 2009-11-29 David Lawrence Ramsey <pooka109@gmail.com> * global.c (shortcut_init) - Add support for ^P and ^N in the help menu. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4452 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 28 Nov, 2009 2 commits
-
-
Chris Allegretta authored
* global.c: Fix replace and insert file initializations for proper compilation options. * nano.c (do_suspend): Update comments to reflect actual code path, bad Chris and thanks for noticing Jordi. * configure.ac: Fix typos git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4449 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
Chris Allegretta authored
* prompt.c (get_prompt_string) - Universally handle help key when is disabled. Fixes Savannah bug 28117 by David Lawrence Ramsey <pooka109@gmail.com>. * chars.c, files.c: Add junk vars to silence the compiler. Sigh. 2009-11-29 David Lawrence Ramsey <pooka109@gmail.com> * Change several *chars to const char, additional cleanups and casts to make compilers happier. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4448 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 27 Nov, 2009 1 commit
-
-
Chris Allegretta authored
* nano.c (do_suspend): Don't clear the screen but do move the cursor down to the last line first in an effort to not corrupt the screen, which contradicts Pico but is consistent with almost all other text editors. Fixes Savannah bug 28110/Debian bug 460510 reported by Tim Connors <reportbug@rather.puzzling.org>. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4446 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 26 Nov, 2009 1 commit
-
-
Chris Allegretta authored
reported by Eitan Adler <eitanadlerlist@gmail.com>. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4445 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-