* commands/read.c (grub_getline): Fix invalid memory access. Don't add newline to the variable value.
* commands/read.c: New file. * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'. (read_mod_SOURCES): New variable. (read_mod_CFLAGS): Likewise. (read_mod_LDFLAGS): Likewise.