busybox/libbb
Jonathan Liu b6dc13c2d3 sulogin: allow system maintenance login if root password is empty
The current password checking is unable to distinguish between the user
entering an empty password or pressing Control-D. As a result, an empty
password always results in normal startup.

We modify bb_ask to return NULL if Control-D is pressed without entering
a password. The sulogin applet is then modified to only proceed to
normal startup if bb_ask returns NULL. This covers EOF with no password,
interrupt by timeout and ^C.

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2013-05-21 17:01:55 +02:00
..
appletlib.c make --help return exitcode 0. Closes 5612 2013-02-28 12:34:18 +01:00
ask_confirmation.c
bb_askpass.c sulogin: allow system maintenance login if root password is empty 2013-05-21 17:01:55 +02:00
bb_bswap_64.c
bb_do_delay.c
bb_pwd.c
bb_qsort.c
bb_strtod.c
bb_strtonum.c
change_identity.c
chomp.c
compare_string_array.c
concat_path_file.c
concat_subpath_file.c
Config.src
copy_file.c
copyfd.c
correct_password.c
crc32.c
create_icmp6_socket.c
create_icmp_socket.c
default_error_retval.c
device_open.c
die_if_bad_username.c
dump.c hexdump: don't unconditionally limit the usable address range 2013-03-27 15:15:33 +01:00
endofname.c
execable.c
fclose_nonstdin.c
fflush_stdout_and_exit.c
fgets_str.c
find_mount_point.c
find_pid_by_name.c
find_root_device.c
full_write.c
get_console.c
get_cpu_count.c
get_last_path_component.c
get_line_from_file.c
get_shell_name.c
get_volsize.c
getopt32.c
getpty.c
hash_md5_sha.c
hash_md5prime.c
herror_msg.c
human_readable.c
inet_cksum.c
inet_common.c
info_msg.c
inode_hash.c
isdirectory.c
Kbuild.src
kernel_version.c
last_char_is.c
lineedit_ptr_hack.c
lineedit.c ash,hush: history builtin 2013-04-07 18:47:24 +02:00
llist.c
login.c libbb: introduce and use strftime_[YYYYMMDD]HHMMSS() 2013-03-29 12:30:33 +01:00
loop.c
make_directory.c
makedev.c
match_fstype.c
messages.c
missing_syscalls.c
mode_string.c
mtab.c
obscure.c
parse_config.c
parse_mode.c
percent_decode.c
perror_msg.c
perror_nomsg_and_die.c
perror_nomsg.c
pidfile.c
platform.c
print_flags.c
printable_string.c
printable.c
process_escape_sequence.c
procps.c
progress.c
ptr_to_globals.c
pw_encrypt_des.c
pw_encrypt_md5.c
pw_encrypt_sha.c
pw_encrypt.c
read_key.c
read_printf.c
read.c
README
recursive_action.c
remove_file.c
rtc.c
run_shell.c
safe_gethostname.c
safe_poll.c
safe_strncpy.c
safe_write.c
selinux_common.c
setup_environment.c
signals.c
simplify_path.c
single_argv.c
skip_whitespace.c
speed_table.c
str_tolower.c
strrstr.c
systemd_support.c
time.c libbb: introduce and use strftime_[YYYYMMDD]HHMMSS() 2013-03-29 12:30:33 +01:00
trim.c
u_signal_names.c
udp_io.c
unicode.c
update_passwd.c
utmp.c
uuencode.c
vdprintf.c
verror_msg.c
vfork_daemon_rexec.c
warn_ignoring_args.c
wfopen_input.c
wfopen.c
write.c
xatonum_template.c
xatonum.c
xconnect.c
xfunc_die.c
xfuncs_printf.c
xfuncs.c
xgetcwd.c
xgethostbyname.c
xreadlink.c readlink: uClibc supports automatic allocation too now 2013-03-12 11:14:24 -04:00
xrealloc_vector.c
xregcomp.c

Please see the LICENSE file for copyright information (GPLv2)

libbb is BusyBox's utility library.  All of this stuff used to be stuffed into
a single file named utility.c.  When I split utility.c to create libbb, some of
the very oldest stuff ended up without their original copyright and licensing
information (which is now lost in the mists of time).  If you see something
that you wrote that is mis-attributed, do let me know so we can fix that up.

	Erik Andersen
	<andersen@codepoet.org>