e2fsprogs/e2fsck
Theodore Ts'o 1760d167b2 e2fsck: make the "fs is mounted; continue?" prompt more paranoid
A user received the "file system is mounted; do you really want to
continue" prompt, and then instead of typing "n" for no, forgot that
he hadn't declined to continuation question, and typed the up-arrow
key, which in his locale, the 'A' in "^[[A" was interpreted as "yes",
and he lost data.

This was clearly the user's fault, but to make e2fsck a bit safer
against user stupidity/carelessness, we will change the "fs is
mounted; continue?" prompt to default to no, and treat the escape
character (along with the return and space characters, currently) as a
request for the default answer.

Addresses-Debian-Bug: #619859
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2011-05-07 23:14:06 -04:00
..
CHANGES Many files: 1997-04-26 13:21:57 +00:00
Makefile.in Add configure options --enable-symlink-build and --enable-symlink-install 2010-05-17 19:21:42 -04:00
Makefile.pq Many files: 1997-11-14 05:23:04 +00:00
argv_parse.c remove useless if-before-free tests 2009-03-08 20:37:12 -04:00
argv_parse.h Remove trailing whitespace for the entire source tree 2008-08-27 23:07:54 -04:00
badblocks.c Remove trailing whitespace for the entire source tree 2008-08-27 23:07:54 -04:00
crc32.c Fix compiling under diet libc 2008-09-12 09:10:39 -04:00
crc32defs.h Only use __builtin_expect if __GNUC__ > 3 2008-07-13 16:06:56 -04:00
dict.c Remove trailing whitespace for the entire source tree 2008-08-27 23:07:54 -04:00
dict.h Fixx gcc -Wall nitpicks. 2003-07-06 00:36:48 -04:00
dirinfo.c e2fsck: fix miscellaneous memory leaks 2009-06-15 03:54:06 -04:00
dx_dirinfo.c e2fsck: fix miscellaneous memory leaks 2009-06-15 03:54:06 -04:00
e2fsck.8.in e2fsck: add an option which causes it to only do a journal replay 2010-12-06 17:15:55 -05:00
e2fsck.c e2fsck: Skip time-based checks if the time looks insane or broken_system_clock 2010-05-13 17:36:36 -04:00
e2fsck.conf.5.in e2fsprogs: man page typo fixes 2011-03-18 15:03:15 -04:00
e2fsck.h e2fsck: add an option which causes it to only do a journal replay 2010-12-06 17:15:55 -05:00
ea_refcount.c e2fsck, resize2fs: fix a fp precision error that can lead to a seg fault 2010-07-05 20:40:41 -04:00
ehandler.c e2fsck: exit from preenhalt if IO errors were encountered 2008-10-12 23:12:22 -04:00
emptydir.c Remove trailing whitespace for the entire source tree 2008-08-27 23:07:54 -04:00
extend.c Remove trailing whitespace for the entire source tree 2008-08-27 23:07:54 -04:00
flushb.c Remove trailing whitespace for the entire source tree 2008-08-27 23:07:54 -04:00
gen_crc32table.c Fix gcc -Wall warnings in e2fsck 2008-06-07 11:04:10 -04:00
iscan.c e2freefrag: Fix getopt bug on machines with unsigned chars 2010-07-05 14:53:58 -04:00
jfs_user.h e2fsck: Fix journal replay for block sizes greater than 8k 2009-01-02 18:14:42 -05:00
journal.c e2fsck: Open the external journal in exclusive mode 2010-09-25 21:14:06 -04:00
message.c e2fsprogs: reserving code points for new ext4 quota feature 2011-02-25 18:31:52 -05:00
mtrace.awk Many files: 1997-04-26 13:21:57 +00:00
mtrace.c Remove trailing whitespace for the entire source tree 2008-08-27 23:07:54 -04:00
mtrace.h ChangeLog, super.c: 2001-01-12 21:05:57 +00:00
pass1.c e2fsck: correct test for EOFBLOCKS 2010-05-19 14:55:29 -04:00
pass1b.c e2fsck: fix miscellaneous memory leaks 2009-06-15 03:54:06 -04:00
pass2.c e2fsck: Don't clear inodes if we found inodes that are in the unused region 2010-05-11 15:28:10 -04:00
pass3.c Add empty function for init_resource_track() and print_resource_track() 2009-05-28 09:55:10 -04:00
pass4.c e2fsck: Fix inode nlink accounting that could cause PROGRAMMING BUG errors 2010-11-26 19:09:43 -05:00
pass5.c e2fsck: remove unused variable in check_block_bitmap() 2009-07-06 23:24:18 -04:00
problem.c e2fsck: Add the ability to force a problem to not be fixed 2010-12-06 10:10:33 -05:00
problem.h e2fsck: Fix a number of problems that were inappropriately using PROMPT_ABORT 2010-05-12 18:58:53 -04:00
problemP.h e2fsck: Add the ability to force a problem to not be fixed 2010-12-06 10:10:33 -05:00
prof_err.et Add the profile library code to e2fsck 2005-12-30 23:57:32 -05:00
profile.c remove useless if-before-free tests 2009-03-08 20:37:12 -04:00
profile.h Remove trailing whitespace for the entire source tree 2008-08-27 23:07:54 -04:00
profile_helpers.c Remove trailing whitespace for the entire source tree 2008-08-27 23:07:54 -04:00
profile_helpers.h Simplify profile core functionality 2006-01-02 22:04:41 -05:00
recovery.c e2fsprogs: fix type-punning warnings 2010-12-16 17:15:30 -05:00
region.c Fix compiling under diet libc 2008-09-12 09:10:39 -04:00
rehash.c e2fsck: Fix bug which can cause e2fsck -fD to corrupt non-indexed directories 2010-02-22 23:51:26 -05:00
revoke.c Remove trailing whitespace for the entire source tree 2008-08-27 23:07:54 -04:00
scantest.c Remove trailing whitespace for the entire source tree 2008-08-27 23:07:54 -04:00
super.c Add basic BIGALLOC support for cluster-based allocation 2011-02-25 21:43:54 -05:00
unix.c e2fsck: make the "fs is mounted; continue?" prompt more paranoid 2011-05-07 23:14:06 -04:00
util.c e2fsck: make the "fs is mounted; continue?" prompt more paranoid 2011-05-07 23:14:06 -04:00