]>
git.proxmox.com Git - grub2.git/log
Vladimir 'phcoder' Serbinenko [Wed, 2 May 2012 08:26:09 +0000 (10:26 +0200)]
* grub-core/commands/legacycfg.c (legacy_file): Default to restricted
entries.
* grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
* docs/grub.texi: Update menuentry description.
Vladimir 'phcoder' Serbinenko [Wed, 2 May 2012 08:09:01 +0000 (10:09 +0200)]
* util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
crash when embedding onto filesystem.
Vladimir 'phcoder' Serbinenko [Wed, 2 May 2012 07:56:56 +0000 (09:56 +0200)]
* util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
name.
Vladimir 'phcoder' Serbinenko [Tue, 1 May 2012 13:29:44 +0000 (15:29 +0200)]
* grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
Vladimir 'phcoder' Serbinenko [Tue, 1 May 2012 13:26:36 +0000 (15:26 +0200)]
* grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
commit.
Bean [Tue, 1 May 2012 13:20:20 +0000 (15:20 +0200)]
* grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
Also-By: Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Tue, 1 May 2012 13:08:29 +0000 (15:08 +0200)]
* grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
Special behaviour for len = 0 to read whole file isn't used anywhere and
can cause buffer ovewrflows in several places.
Vladimir 'phcoder' Serbinenko [Tue, 1 May 2012 13:06:34 +0000 (15:06 +0200)]
* grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
Vladimir 'phcoder' Serbinenko [Tue, 1 May 2012 13:05:26 +0000 (15:05 +0200)]
Handle RAIDZ on non-512B sectors.
* grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
max_children_ashift.
(fill_vdev_info_real): Fill max_children_ashift.
(read_device): Use max_children_ashift.
Vladimir 'phcoder' Serbinenko [Tue, 1 May 2012 13:03:27 +0000 (15:03 +0200)]
* grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
Vladimir 'phcoder' Serbinenko [Tue, 1 May 2012 13:02:34 +0000 (15:02 +0200)]
* grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
disk names.
* docs/grub.texi: Update device.map parts.
Vladimir 'phcoder' Serbinenko [Tue, 1 May 2012 12:59:30 +0000 (14:59 +0200)]
Don't scan into non-diskfilter devices having diskfilter names.
* grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
(scan_disk): New argument accept_diskfilter. Fix recursion depth
handling.
(scan_disk_hook): New function.
Bean [Sun, 29 Apr 2012 16:43:22 +0000 (18:43 +0200)]
* grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
allocation.
Mads Kiilerich [Sun, 29 Apr 2012 16:15:24 +0000 (18:15 +0200)]
* configure.ac: Detect starfield theme font path
/usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
Vladimir 'phcoder' Serbinenko [Thu, 26 Apr 2012 18:51:06 +0000 (20:51 +0200)]
* grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
geometry on serial consoles.
Vladimir 'phcoder' Serbinenko [Thu, 26 Apr 2012 16:57:22 +0000 (18:57 +0200)]
* grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
because of network consoles.
Vladimir 'phcoder' Serbinenko [Thu, 26 Apr 2012 16:55:39 +0000 (18:55 +0200)]
* grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
handling.
Vladimir 'phcoder' Serbinenko [Thu, 26 Apr 2012 10:51:03 +0000 (12:51 +0200)]
* grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
falls on Q syndrom.
Vladimir 'phcoder' Serbinenko [Thu, 26 Apr 2012 10:49:35 +0000 (12:49 +0200)]
* grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
Vladimir 'phcoder' Serbinenko [Wed, 25 Apr 2012 23:16:25 +0000 (01:16 +0200)]
* grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
Allocate at lest 8192 for temporary buffer as required for lzo.
Vladimir 'phcoder' Serbinenko [Wed, 25 Apr 2012 14:28:06 +0000 (16:28 +0200)]
* grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
to cluster_bits, since it's already added in.
(grub_fat_read_data): Likewise.
Vladimir 'phcoder' Serbinenko [Wed, 25 Apr 2012 09:56:24 +0000 (11:56 +0200)]
* grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
as long as cluster size is multiple of 512 bytes.
Vladimir 'phcoder' Serbinenko [Mon, 23 Apr 2012 15:17:50 +0000 (17:17 +0200)]
* util/grub-mkrescue.in: Fix locale directory.
Vladimir 'phcoder' Serbinenko [Mon, 23 Apr 2012 15:14:48 +0000 (17:14 +0200)]
* grub-core/kern/emu/hostdisk.c (map): Make static.
Bean [Mon, 23 Apr 2012 15:11:49 +0000 (17:11 +0200)]
* util/grub-fstest.c (fstest): Add missing break.
root [Sun, 22 Apr 2012 19:02:55 +0000 (19:02 +0000)]
Fix hurd build.
* util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
find_root_devices_from_poolname, find_root_devices_from_libzfs,
grub_find_device): Do not define.
Samuel Thibault [Sun, 22 Apr 2012 16:44:19 +0000 (18:44 +0200)]
Fix hurd build.
* grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
not define nr variable.
Vladimir 'phcoder' Serbinenko [Sat, 21 Apr 2012 14:49:56 +0000 (16:49 +0200)]
Fix kfreebsd compile and behaviour.
* grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
format-security.
* util/getroot.c: Fix wait.h include.
(grub_guess_root_devices): Error if grub_find_device fails.
(grub_util_get_geom_abstraction): Fix shadowing and format-security.
(grub_util_get_dev_abstraction): Likewise.
(grub_util_pull_device): Likewise.
(grub_util_get_grub_dev): Likewise.
* util/lvm.c (grub_util_lvm_isvolume): Likewise.
Vladimir 'phcoder' Serbinenko [Sat, 21 Apr 2012 14:42:28 +0000 (16:42 +0200)]
Fix and unify wholedisk detection.
* util/getroot.c (convert_system_partition_to_system_disk): New argument
is_part. All users updated.
(device_is_wholedisk): Removed.
(grub_util_biosdisk_get_grub_dev): Use is_part.
Vladimir 'phcoder' Serbinenko [Thu, 19 Apr 2012 18:35:06 +0000 (20:35 +0200)]
* grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
mode.
Vladimir 'phcoder' Serbinenko [Thu, 19 Apr 2012 09:34:43 +0000 (11:34 +0200)]
* configure.ac: Bump to beta4.
Vladimir 'phcoder' Serbinenko [Thu, 19 Apr 2012 09:32:59 +0000 (11:32 +0200)]
* grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
--fs-uuid --set UUID syntax.
Vladimir 'phcoder' Serbinenko [Wed, 18 Apr 2012 21:48:52 +0000 (23:48 +0200)]
* grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
disunification.
Vladimir 'phcoder' Serbinenko [Wed, 18 Apr 2012 21:37:25 +0000 (23:37 +0200)]
* conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
Mads Kiilerich [Wed, 18 Apr 2012 21:31:26 +0000 (23:31 +0200)]
* grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
Mike Gilbert [Wed, 18 Apr 2012 21:25:21 +0000 (23:25 +0200)]
* util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
Bean [Wed, 18 Apr 2012 21:21:38 +0000 (23:21 +0200)]
* grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
place.
Vladimir 'phcoder' Serbinenko [Wed, 18 Apr 2012 21:18:51 +0000 (23:18 +0200)]
* grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
users updated.
(grub_util_biosdisk_read): Handle Linux partitions not exactly
corresponding to GRUB partitions.
(grub_util_biosdisk_write): Likewise.
Vladimir 'phcoder' Serbinenko [Wed, 18 Apr 2012 21:11:33 +0000 (23:11 +0200)]
Scan mdraid before LVM.
* include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
(grub_diskfilter_register_front): ... this.
(grub_diskfilter_register_back): New function.
All users of grub_diskfilter_register updated.
Vladimir 'phcoder' Serbinenko [Wed, 18 Apr 2012 21:01:51 +0000 (23:01 +0200)]
* util/grub-install.in: Fix an automatic target detection bug.
Vladimir 'phcoder' Serbinenko [Wed, 18 Apr 2012 20:43:55 +0000 (22:43 +0200)]
* util/grub-install.in: New option --efi-directory.
Vladimir 'phcoder' Serbinenko [Tue, 17 Apr 2012 11:00:06 +0000 (13:00 +0200)]
* grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
boot services if we have no other choice.
Vladimir 'phcoder' Serbinenko [Sat, 14 Apr 2012 13:20:45 +0000 (15:20 +0200)]
* util/grub-mknetdir.in: Rename --override-directory to --directory and
document it.
* tests/util/grub-shell.in: Update to --directory.
Vladimir 'phcoder' Serbinenko [Fri, 13 Apr 2012 17:26:36 +0000 (19:26 +0200)]
* grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
Vladimir 'phcoder' Serbinenko [Fri, 13 Apr 2012 15:08:38 +0000 (17:08 +0200)]
* grub-core/fs/minix.c (grub_minix_data): Fix ino type.
(grub_minix_read_file): Likewise.
(grub_minix_read_inode): Likewise.
(grub_minix_find_file): Likewise.
(grub_minix_dir): Likewise.
Vladimir 'phcoder' Serbinenko [Fri, 13 Apr 2012 14:58:02 +0000 (16:58 +0200)]
* util/grub-setup.c (setup): Fix partition handling and blocklist
check.
Vladimir 'phcoder' Serbinenko [Fri, 13 Apr 2012 14:55:20 +0000 (16:55 +0200)]
* grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
redundant buggy overlap check.
Vladimir 'phcoder' Serbinenko [Wed, 11 Apr 2012 20:43:15 +0000 (22:43 +0200)]
* tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
and grub-mknetdir.
Vladimir 'phcoder' Serbinenko [Wed, 11 Apr 2012 20:40:20 +0000 (22:40 +0200)]
* grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
kh.loadflags on pre-2.00 kernels.
Vladimir 'phcoder' Serbinenko [Wed, 11 Apr 2012 20:32:31 +0000 (22:32 +0200)]
Terminate UNDI and PXE before launching the payload to avoid problems
with DMA.
* grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
(grub_loader_flags): ... this. All users updated.
(grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
* grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
* grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
function.
(grub_pxe_restore): Likewise.
(fini_hnd): New var.
(GRUB_MOD_INIT): Register shutdown hook.
(GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
* include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
(GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
(grub_loader_set): Rename second argument to flags.
Vladimir 'phcoder' Serbinenko [Sat, 7 Apr 2012 18:11:04 +0000 (20:11 +0200)]
* grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
written bytes.
(grub_get_num_of_utf8_bytes): New function.
(grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
* grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
executing it.
* include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
(grub_ucs4_to_utf8): Change return type.
Vladimir 'phcoder' Serbinenko [Sat, 7 Apr 2012 18:03:38 +0000 (20:03 +0200)]
* grub-core/commands/usbtest.c (usb_print_str): Silence spurious
warning.
Vladimir 'phcoder' Serbinenko [Sat, 7 Apr 2012 17:58:39 +0000 (19:58 +0200)]
* grub-core/lib/adler32.c: Recode due to license unclearness.
Vladimir 'phcoder' Serbinenko [Sat, 7 Apr 2012 17:54:51 +0000 (19:54 +0200)]
* grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
(test_header): Likewise.
Vladimir 'phcoder' Serbinenko [Sat, 7 Apr 2012 17:49:25 +0000 (19:49 +0200)]
Fix --help formatting.
* util/grub-mkconfig_lib.in (print_option_help): New function.
(grub_fmt): Likewise.
* util/grub-install.in: Use print_option_help and grub_fmt.
* util/grub-kbdcomp.in: Likewise.
* util/grub-mkconfig.in: Likewise.
* util/grub-mknetdir.in: Likewise.
* util/grub-mkrescue.in: Likewise.
* util/grub-mkstandalone.in: Likewise.
* util/grub-reboot.in: Likewise.
* util/grub-set-default.in: Likewise.
* util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
Vladimir 'phcoder' Serbinenko [Sat, 7 Apr 2012 17:44:50 +0000 (19:44 +0200)]
* linguas.sh: Remove autogenerated *.po.
Vladimir 'phcoder' Serbinenko [Wed, 4 Apr 2012 12:55:56 +0000 (14:55 +0200)]
* po/README: Move language fetcing to ...
* linguas.sh: ... here.
* po/README: Point to linguas.sh.
Vladimir 'phcoder' Serbinenko [Wed, 4 Apr 2012 12:43:27 +0000 (14:43 +0200)]
* po/README: Exclude ko.po due to disclaimer problems.
Vladimir 'phcoder' Serbinenko [Wed, 4 Apr 2012 12:41:55 +0000 (14:41 +0200)]
* grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
len = 0.
(grub_gettext_translate_real): Handle 0th string.
(grub_gettext_translate): Ensure that "" isn't translated.
Vladimir 'phcoder' Serbinenko [Wed, 4 Apr 2012 12:33:38 +0000 (14:33 +0200)]
* grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
TRANSLATORS comment.
(grub_diskfilter_print_partmap): Propagate changing of error into
warning.
Vladimir 'phcoder' Serbinenko [Wed, 4 Apr 2012 12:31:22 +0000 (14:31 +0200)]
* include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
to uint64_t to prevent overflow.
(grub_diskfilter_lv): Increase start_extent and extent_count
to uint64_t to prevent overflow.
Vladimir 'phcoder' Serbinenko [Sun, 1 Apr 2012 19:54:45 +0000 (21:54 +0200)]
* configure.ac: Increase version.
Vladimir 'phcoder' Serbinenko [Sun, 1 Apr 2012 19:53:46 +0000 (21:53 +0200)]
Introduce en@cyrillic en@hebrew en@arabic and en@greek.
* po/Rules-translit: New file.
* po/arabic.sed: Likewise.
* po/cyrillic.sed: Likewise.
* po/greek.sed: Likewise.
* po/hebrew.sed: Likewise.
* po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
* po/Makefile.in.in: Add extra_dist4.
Vladimir 'phcoder' Serbinenko [Sun, 1 Apr 2012 19:35:18 +0000 (21:35 +0200)]
Handle big-endian minixfs (fixes minixfs tests on bigendian).
* grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
modify names. Introduce MODE_BIGENDIAN.
* grub-core/fs/minix_be.c: New file.
* grub-core/fs/minix2_be.c: Likewise
* grub-core/fs/minix3_be.c: Likewise.
* Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
minix3_be.
* grub-core/Makefile.core.def (minix_be): New module.
(minix2_be): Likewise.
(minix3_be): Likewise.
Felix [Sun, 1 Apr 2012 19:30:24 +0000 (21:30 +0200)]
* grub-core/loader/efi/appleloader.c (devpath_7): New var.
(devs): Add MBP 2011.
Vladimir 'phcoder' Serbinenko [Sun, 1 Apr 2012 19:27:17 +0000 (21:27 +0200)]
* grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
Vladimir 'phcoder' Serbinenko [Sun, 1 Apr 2012 19:25:17 +0000 (21:25 +0200)]
* grub-core/normal/cmdline.c (print_completion): New field
prompt_len.
(grub_cmdline_get): Handle width properly.
Vladimir 'phcoder' Serbinenko [Sun, 1 Apr 2012 19:22:48 +0000 (21:22 +0200)]
* grub-core/commands/lsacpi.c (options): Add missing terminator.
Vladimir 'phcoder' Serbinenko [Sat, 31 Mar 2012 19:04:56 +0000 (21:04 +0200)]
* include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
after 29th of February.
Vladimir 'phcoder' Serbinenko [Sat, 31 Mar 2012 17:04:13 +0000 (19:04 +0200)]
Fix exfat endianness handling.
* grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
(grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
(grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
Byte-swap utf16 when necessary.
(grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
Anton Blanchard [Sat, 31 Mar 2012 16:45:13 +0000 (18:45 +0200)]
Fix btrfs endianness handling.
* grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
(lower_bound): Make root uint64_t. Use root in le.
(grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
(find_path): Fix template key init.
(grub_btrfs_dir): Fix mtime byteswap.
* include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
Also-By: Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Sat, 31 Mar 2012 16:38:29 +0000 (18:38 +0200)]
* grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
recursion_depth. Break infinite resursions. All users updated.
Vladimir 'phcoder' Serbinenko [Sat, 31 Mar 2012 10:27:10 +0000 (12:27 +0200)]
* util/getroot.c (convert_system_partition_to_system_disk): Fix use
after free.
Reported by: Peter Jones.
Anton Blanchard [Sat, 31 Mar 2012 10:08:50 +0000 (12:08 +0200)]
* grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
8 bit values.
Vladimir 'phcoder' Serbinenko [Wed, 28 Mar 2012 15:58:21 +0000 (17:58 +0200)]
* util/grub-install.in: Fix nvram call for PreP.
Vladimir 'phcoder' Serbinenko [Wed, 28 Mar 2012 15:56:45 +0000 (17:56 +0200)]
* grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
the error when some elements are missing into a warning.
Vladimir 'phcoder' Serbinenko [Wed, 28 Mar 2012 15:54:54 +0000 (17:54 +0200)]
* grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
Colin Watson [Tue, 27 Mar 2012 23:37:00 +0000 (00:37 +0100)]
* docs/grub.texi (Invoking grub-probe): New section.
Reported by: Filipus Klutiero. Fixes Debian bug #666031.
Vladimir 'phcoder' Serbinenko [Tue, 27 Mar 2012 15:07:26 +0000 (17:07 +0200)]
Fix tab and wide character handling in editor and menu.
* grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
agglomerate control characters with combining marks.
(bidi_line_wrap): Allow break on tab.
(grub_unicode_get_comb_start): New function.
* grub-core/normal/menu_entry.c: Restructure to handle wide characters
and tab correctly.
* grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
with a space.
* grub-core/normal/term.c (print_ucs4_terminal): New argument
fixed_tab_size. All users updated.
* include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
(grub_term_getcharwidth): Handle \t.
* include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
and copy.
Vladimir 'phcoder' Serbinenko [Mon, 26 Mar 2012 14:10:40 +0000 (16:10 +0200)]
Handle big-endian mdraid.
* Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
* grub-core/Makefile.core.def (mdraid09_be): New module.
* grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
rather than grub_le_to_cpu* and grub_cpu_to_le*.
* grub-core/disk/mdraid_linux_be.c: New file.
Vladimir 'phcoder' Serbinenko [Mon, 26 Mar 2012 14:07:42 +0000 (16:07 +0200)]
* grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
Vladimir 'phcoder' Serbinenko [Mon, 19 Mar 2012 15:30:16 +0000 (16:30 +0100)]
* util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
missing quotes which caused confusion among translators.
Vladimir 'phcoder' Serbinenko [Mon, 19 Mar 2012 15:27:59 +0000 (16:27 +0100)]
* util/grub-mkconfig_lib.in: Fix typo.
Vladimir 'phcoder' Serbinenko [Mon, 19 Mar 2012 12:29:43 +0000 (13:29 +0100)]
* grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
spaces.
* tests/grub_script_leading_whitespace.in: New file.
* Makefile.util.def (grub_script_leading_whitespace): New test.
Vladimir 'phcoder' Serbinenko [Mon, 19 Mar 2012 10:10:11 +0000 (11:10 +0100)]
* grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
to work.
Vladimir 'phcoder' Serbinenko [Mon, 19 Mar 2012 10:07:28 +0000 (11:07 +0100)]
* grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
starts with control character.
Vladimir 'phcoder' Serbinenko [Mon, 19 Mar 2012 09:59:16 +0000 (10:59 +0100)]
* grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
overflow.
(grub_gdb_outbuf): Likewise.
Vladimir 'phcoder' Serbinenko [Mon, 19 Mar 2012 09:56:43 +0000 (10:56 +0100)]
* grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
zero terminator. Fixes a crash.
Vladimir 'phcoder' Serbinenko [Sun, 11 Mar 2012 22:41:29 +0000 (23:41 +0100)]
* grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
beyond 4 GiB.
(grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
images independently of preffered adderss field.
Vladimir 'phcoder' Serbinenko [Sun, 11 Mar 2012 22:36:35 +0000 (23:36 +0100)]
* grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
* grub-core/commands/regexp.c: Likewise.
* grub-core/loader/i386/linux.c: Likewise.
* grub-core/partmap/msdos.c: Likewise.
* grub-core/script/execute.c: Likewise.
* grub-core/term/gfxterm.c: Likewise.
Vladimir 'phcoder' Serbinenko [Sun, 11 Mar 2012 13:46:48 +0000 (14:46 +0100)]
Add variable parsing in $"..." and fix several mismatches with bash.
* Makefile.util.def (grub_script_gettext): New test.
* grub-core/script/execute.c (parse_string): New function.
(gettext_append): Likewise.
(grub_script_arglist_to_argv): Use gettext_append.
* grub-core/script/yylex.l: Fix slash and newline handling in $"...".
* tests/grub_script_gettext.in: New file.
Vladimir 'phcoder' Serbinenko [Sun, 11 Mar 2012 13:43:18 +0000 (14:43 +0100)]
Fix handling of leading spaces in scripts.
* grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
spaces.
* grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
other than skipping \r. All users updated.
* tests/grub_script_echo1.in: Add space-related tests.
* util/grub-menulst2cfg.c (main): Remove useless space skipping.
Vladimir 'phcoder' Serbinenko [Sun, 11 Mar 2012 13:36:02 +0000 (14:36 +0100)]
* grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
Vladimir 'phcoder' Serbinenko [Sat, 10 Mar 2012 22:52:47 +0000 (23:52 +0100)]
* configure.ac: Bump up the version to beta2.
Vladimir 'phcoder' Serbinenko [Sat, 10 Mar 2012 22:25:34 +0000 (23:25 +0100)]
Fix gettext reload bugs (e.g. inability to disable gettext
once enabled).
* grub-core/gettext/gettext.c: Encapsulate all static variables in
main_context and secondary_context. All functions updated.
(grub_gettext_translate): Rename to ...
(grub_gettext_translate_real): ... this. Return NULL on failed
translate.
(grub_gettext_translate): Handle secondary context.
(grub_gettext_delete_list): Close file and zero-out the context.
(grub_mofile_open): Don't call grub_gettext_delete_list.
Don't close file.
(grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
if locale="" to avoid pointless error message.
(grub_gettext_env_write_lang): Update lang even if load fails.
Handle secondary context.
(grub_gettext_reread_prefix): New function.
(read_main): Likewise.
(read_secondary): Likewise.
(GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
(GRUB_MOD_FINI): Handle secondary context. Don't close file.
* grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
* include/grub/normal.h (grub_gettext_reread_prefix): New proto.
Vladimir 'phcoder' Serbinenko [Sat, 10 Mar 2012 20:30:37 +0000 (21:30 +0100)]
* configure.ac: Decrease warning level to avoid spurious warnings and
to be able to compile with GCC 4.2.
* Makefile.util.def: Remove -Wno-error=logical-op.
William Bittner [Sat, 10 Mar 2012 19:47:12 +0000 (20:47 +0100)]
* util/import_unicode.py: Add missing brackets around string for
python 3 support.
Vladimir 'phcoder' Serbinenko [Sat, 10 Mar 2012 19:41:28 +0000 (20:41 +0100)]
Fix efi chainloader on network root.
* grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
network devices.
* grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
New function.
Vladimir 'phcoder' Serbinenko [Sat, 10 Mar 2012 18:46:46 +0000 (19:46 +0100)]
* grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
unused show_text member.
* docs/grub.texi: Document "text" property.
Vladimir 'phcoder' Serbinenko [Sat, 10 Mar 2012 17:02:53 +0000 (18:02 +0100)]
* grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
in dprintf.