]>
git.ipfire.org Git - thirdparty/grub.git/log
Vladimir 'phcoder' Serbinenko [Sun, 27 May 2012 11:14:42 +0000 (13:14 +0200)]
* util/grub-mkconfig_lib.in (print_option_help): Properly redirect
stderr on test calls.
Vladimir 'phcoder' Serbinenko [Sat, 26 May 2012 23:03:26 +0000 (01:03 +0200)]
* grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
Vladimir 'phcoder' Serbinenko [Sat, 26 May 2012 23:00:46 +0000 (01:00 +0200)]
* grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
Vladimir 'phcoder' Serbinenko [Sat, 26 May 2012 22:58:48 +0000 (00:58 +0200)]
* grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
"..".
Vladimir 'phcoder' Serbinenko [Sat, 26 May 2012 22:56:55 +0000 (00:56 +0200)]
* grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
(grub_hfsplus_iterate_dir): Add "." and "..".
Vladimir 'phcoder' Serbinenko [Sat, 26 May 2012 22:54:41 +0000 (00:54 +0200)]
* grub-core/fs/cpio.c (canonicalize): Handle "..".
(grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
Vladimir 'phcoder' Serbinenko [Sat, 26 May 2012 22:47:37 +0000 (00:47 +0200)]
* grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
(find_path): Handle "." and "..".
Vladimir 'phcoder' Serbinenko [Sat, 26 May 2012 22:45:41 +0000 (00:45 +0200)]
* grub-core/fs/affs.c (grub_affs_file): New field hardlink.
(GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
(grub_affs_iterate_dir): Handle hardlinks.
Matthew Garrett [Sat, 26 May 2012 11:33:34 +0000 (13:33 +0200)]
* grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
(grub_efi_console_fini): Likewise.
* grub-core/video/efi_gop.c (framebuffer): New field offscreen.
(grub_video_gop_fill_mode_info): Rename to ...
(grub_video_gop_fill_real_mode_info): ... this.
(grub_video_gop_fill_mode_info): New function.
(grub_video_gop_setup): Setup double framebuffer.
(grub_video_gop_get_info_and_fini): Use original framebuffer.
Free offscreen.
(grub_video_gop_swap_buffers): Copy framebuffer.
(grub_video_gop_fini): Free offscreen buffer.
* include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
New enum.
(grub_efi_gop_blt_pixel): New struct.
Vladimir 'phcoder' Serbinenko [Sat, 26 May 2012 10:06:17 +0000 (12:06 +0200)]
* gentpl.py: Remove error disabling for objconv.
Vladimir 'phcoder' Serbinenko [Sat, 26 May 2012 10:03:47 +0000 (12:03 +0200)]
* configure.ac: Remove -Wunitialized as it's not available on older
compilers.
Vladimir 'phcoder' Serbinenko [Sat, 26 May 2012 09:54:20 +0000 (11:54 +0200)]
Fix extent overflow comparator.
* grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
(grub_hfsplus_read_block): Set type.
(grub_hfsplus_cmp_extkey): Compare type.
Vladimir 'phcoder' Serbinenko [Fri, 25 May 2012 15:57:25 +0000 (17:57 +0200)]
* util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
Vladimir 'phcoder' Serbinenko [Thu, 24 May 2012 22:47:49 +0000 (00:47 +0200)]
* grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
than 0.
Vladimir 'phcoder' Serbinenko [Thu, 24 May 2012 22:36:14 +0000 (00:36 +0200)]
* Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
(dejavu_bold_14.pf2): New target.
Vladimir 'phcoder' Serbinenko [Thu, 24 May 2012 22:28:43 +0000 (00:28 +0200)]
* configure.ac: Fix djvu font detection.
Vladimir 'phcoder' Serbinenko [Wed, 23 May 2012 07:10:56 +0000 (09:10 +0200)]
* grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
ext* instead of ext2.
Vladimir 'phcoder' Serbinenko [Wed, 23 May 2012 07:09:36 +0000 (09:09 +0200)]
* grub-core/normal/term.c (read_terminal_list): Terminate the terminal
name with \0.
Jordan Uggla [Tue, 22 May 2012 07:15:28 +0000 (09:15 +0200)]
* docs/grub-dev.texi: Remove dot from .png.
Vladimir 'phcoder' Serbinenko [Tue, 22 May 2012 07:09:00 +0000 (09:09 +0200)]
* grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
protective entry in any slot.
* grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
if protective entry is found in any slot.
Protective entry in non-first slot make no sense but is a widespread
brain damage.
Vladimir 'phcoder' Serbinenko [Tue, 22 May 2012 06:38:17 +0000 (08:38 +0200)]
* grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
Vladimir 'phcoder' Serbinenko [Tue, 22 May 2012 06:30:57 +0000 (08:30 +0200)]
* grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
with old reiserfs.
(grub_reiserfs_open): Don't free root.
Vladimir 'phcoder' Serbinenko [Tue, 22 May 2012 06:24:27 +0000 (08:24 +0200)]
* grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
after freeing for safety.
Vladimir 'phcoder' Serbinenko [Mon, 21 May 2012 22:02:21 +0000 (00:02 +0200)]
* grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
Reported by: Jordan Uggla.
Jordan Uggla [Mon, 21 May 2012 21:04:11 +0000 (23:04 +0200)]
* docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
actual implementation. Specifically, clarify that the grub menu will
be displayed for GRUB_TIMOUT seconds after the hidden timeout has
passed.
Benjamin Herrenschmidt [Mon, 21 May 2012 20:40:34 +0000 (22:40 +0200)]
* grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
of r0.
Vladimir 'phcoder' Serbinenko [Mon, 21 May 2012 20:17:11 +0000 (22:17 +0200)]
Remove unjustified hard dependency of normal.mod on gfxterm.
* include/grub/term.h (grub_term_output): New member fullscreen.
* include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
* grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
(grub_gfxterm): Set .fullscreen.
* grub-core/normal/menu.c (menu_init): Use fullscreen.
* grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
Vladimir 'phcoder' Serbinenko [Mon, 21 May 2012 20:12:45 +0000 (22:12 +0200)]
* docs/grub.texi (Internationalisation/Filesystems): Add precisions
mentioning possible problems with non-ASCII (non-compliant) ISOs.
Mention case-insensitive AFFS, SFS and JFS.
Vladimir 'phcoder' Serbinenko [Mon, 21 May 2012 20:07:28 +0000 (22:07 +0200)]
* grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
Vladimir 'phcoder' Serbinenko [Mon, 21 May 2012 20:02:56 +0000 (22:02 +0200)]
* grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
a bad FS.
Vladimir 'phcoder' Serbinenko [Fri, 18 May 2012 10:51:02 +0000 (12:51 +0200)]
* grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
Vladimir 'phcoder' Serbinenko [Thu, 17 May 2012 11:50:33 +0000 (13:50 +0200)]
* grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
(grub_jfs_mount): Fill caseins.
(grub_jfs_find_file): Respect caseins.
Vladimir 'phcoder' Serbinenko [Thu, 17 May 2012 11:47:23 +0000 (13:47 +0200)]
* grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
through UTF-16.
Vladimir 'phcoder' Serbinenko [Thu, 17 May 2012 11:45:00 +0000 (13:45 +0200)]
* grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
New argument origpath. All users updated.
Vladimir 'phcoder' Serbinenko [Tue, 15 May 2012 15:17:06 +0000 (17:17 +0200)]
* grub-core/fs/ntfs.c (read_data): Prevent overflow.
(read_attr): Ensure that we read start of possibly compressed block.
Vladimir 'phcoder' Serbinenko [Tue, 15 May 2012 15:09:14 +0000 (17:09 +0200)]
* include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
(grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
All users updated.
Vladimir 'phcoder' Serbinenko [Tue, 15 May 2012 14:32:43 +0000 (16:32 +0200)]
* Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
(dejavu.pf2): Replace with ...
(dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
this.
Vladimir 'phcoder' Serbinenko [Mon, 14 May 2012 09:47:22 +0000 (11:47 +0200)]
* util/grub.d/20_linux_xen.in: Add missing line.
Vladimir 'phcoder' Serbinenko [Mon, 14 May 2012 08:18:42 +0000 (10:18 +0200)]
* include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
(GRUB_UTF16_LOWER_SURROGATE): Likewise.
(grub_utf16_to_utf8): Likewise.
Vladimir 'phcoder' Serbinenko [Sun, 13 May 2012 18:29:23 +0000 (20:29 +0200)]
* grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
* grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
* include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
Vladimir 'phcoder' Serbinenko [Sun, 13 May 2012 18:23:02 +0000 (20:23 +0200)]
* grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
a bad FS.
Vladimir 'phcoder' Serbinenko [Sun, 13 May 2012 18:18:33 +0000 (20:18 +0200)]
* grub-core/fs/udf.c (read_string): Bail out on size=0.
(grub_udf_read_symlink): Handle read_string failure.
Vladimir 'phcoder' Serbinenko [Sat, 12 May 2012 12:15:45 +0000 (14:15 +0200)]
* grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
comment.
Vladimir 'phcoder' Serbinenko [Sat, 12 May 2012 11:54:26 +0000 (13:54 +0200)]
Fix handling of UDF symlinks.
* grub-core/fs/udf.c (read_string): New argument outbuf.
All users updated.
(grub_ufs_read_symlink): Rename to ...
(grub_udf_read_symlink): ... this. All users updated.
Handle symlinks with more than one component.
Vladimir 'phcoder' Serbinenko [Sat, 12 May 2012 11:44:48 +0000 (13:44 +0200)]
* grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
symlinks. Replace leading colon with a slash.
Vladimir 'phcoder' Serbinenko [Sat, 12 May 2012 11:41:02 +0000 (13:41 +0200)]
* grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
filename.
Vladimir 'phcoder' Serbinenko [Sat, 12 May 2012 11:35:58 +0000 (13:35 +0200)]
* grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
match in inner node.
Vladimir 'phcoder' Serbinenko [Sat, 12 May 2012 11:31:05 +0000 (13:31 +0200)]
* grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
* grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
* grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
* grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
* grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
* grub-core/fs/minix.c (grub_minix_mount): Likewise.
* grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
* grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
* grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
Vladimir 'phcoder' Serbinenko [Fri, 11 May 2012 19:07:39 +0000 (21:07 +0200)]
Use grub-probe and not cmp to check that disk is empty.
* util/grub-install.in: Use grub-probe for zero-check.
* util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
(probe): Handle PRINT_ZERO_CHECK.
(argp_parser): Handle -t zero_check.
Vladimir 'phcoder' Serbinenko [Fri, 11 May 2012 19:03:47 +0000 (21:03 +0200)]
Flush block cache on adding disk to device map.
* grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
(grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
adding.
(read_device_map): Likewise.
(open_device): Flush on opening.
Vladimir 'phcoder' Serbinenko [Thu, 10 May 2012 21:38:01 +0000 (23:38 +0200)]
* grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
(handle_symlink): Fix off-by-one error.
Canonicalize the target.
(grub_cpio_dir): Canonicalize the name.
Fix memory leak.
Set directory.
(grub_cpio_open): Canonicalize the name.
Vladimir 'phcoder' Serbinenko [Thu, 10 May 2012 21:35:03 +0000 (23:35 +0200)]
* grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
handling.
Vladimir 'phcoder' Serbinenko [Thu, 10 May 2012 21:33:44 +0000 (23:33 +0200)]
* grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
* grub-core/fs/minix.c (grub_minix_find_file): Likewise.
Vladimir 'phcoder' Serbinenko [Thu, 10 May 2012 07:39:11 +0000 (09:39 +0200)]
* util/grub-menulst2cfg.c (main): Check return value of fwrite.
* util/grub-mklayout.c (write_file): Likewise. New argument fname.
All users updated.
Vladimir 'phcoder' Serbinenko [Thu, 10 May 2012 00:36:23 +0000 (02:36 +0200)]
* util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
counterpart.
Vladimir 'phcoder' Serbinenko [Wed, 9 May 2012 22:25:36 +0000 (00:25 +0200)]
Fix UFS1 big file support.
* grub-core/fs/ufs.c (INODE): Removed.
(INODE_SIZE): Always use 64-bit byte-swap since size field is always
64-bit.
(INODE_MODE): Simplify.
(grub_ufs_inode): Use uint64_t for size and not int64_t.
(grub_ufs_lookup_symlink): Don't use INODE.
Vladimir 'phcoder' Serbinenko [Wed, 9 May 2012 22:12:02 +0000 (00:12 +0200)]
Fix minixfs with non-power-of-two blocks since it's supported by minix.
* grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
(grub_minix_data): Replace log_block_size with block_size.
(grub_minix_read_file): Use block_size but avoid 64-bit division.
(grub_minix_mount): Fill block_size.
Vladimir 'phcoder' Serbinenko [Wed, 9 May 2012 12:36:17 +0000 (14:36 +0200)]
* configure.ac: Bump to beta5.
Vladimir 'phcoder' Serbinenko [Wed, 9 May 2012 11:09:38 +0000 (13:09 +0200)]
Add language files to ignore
Vladimir 'phcoder' Serbinenko [Wed, 9 May 2012 11:02:59 +0000 (13:02 +0200)]
Fix wrapped HFS+ handling.
* grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
blocks_start. All users updated.
* grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
wrapping offset.
(grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
Vladimir 'phcoder' Serbinenko [Wed, 9 May 2012 10:55:43 +0000 (12:55 +0200)]
Fix long symlinks on reiserfs.
* grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
(grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
(grub_reiserfs_iterate_dir): Save size for non-directories.
(grub_reiserfs_open): Don't reread stat block as we already know the
size.
(grub_reiserfs_read): Split into...
(grub_reiserfs_read_real): ... and ...
(grub_reiserfs_read): ...this.
Vladimir 'phcoder' Serbinenko [Wed, 9 May 2012 00:12:16 +0000 (02:12 +0200)]
Fix non-indexed JFS.
* grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
(grub_jfs_data): New field namecomponentlen.
(grub_jfs_mount): Fill namecomponentlen.
(grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
Vladimir 'phcoder' Serbinenko [Tue, 8 May 2012 21:20:02 +0000 (23:20 +0200)]
* grub-core/script/yylex.l: Ugly fix for "\\\n ".
* tests/grub_script_echo1.in: Add tests.
Vladimir 'phcoder' Serbinenko [Tue, 8 May 2012 21:11:47 +0000 (23:11 +0200)]
* util/grub-install.in: Ignore empty devicetree directory.
Bean [Tue, 8 May 2012 14:03:02 +0000 (16:03 +0200)]
* grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
All users updated.
(free_rsm): Free header as well.
(free_old_fragments): Fix memory leak.
* grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
* grub-core/net/tftp.c (tftp_receive): Fix memory leak.
(destroy_pq): Likewise.
* include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
Vladimir 'phcoder' Serbinenko [Tue, 8 May 2012 12:22:38 +0000 (14:22 +0200)]
* grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
resulting hash as a precaution.
Vladimir 'phcoder' Serbinenko [Tue, 8 May 2012 12:07:49 +0000 (14:07 +0200)]
* grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
'_' in variable names.
* grub-core/net/net.c (grub_net_network_level_interface_register):
Likewise.
Vladimir 'phcoder' Serbinenko [Tue, 8 May 2012 02:38:19 +0000 (04:38 +0200)]
Fix AFFS with non-512B blocks.
* grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
(AFFS_MAX_LOG_BLOCK_SIZE): New definition.
(grub_affs_data): Replace blocksize with log_blocksize.
(grub_affs_read_block): Fix non-512B blocks.
(grub_affs_read_symlink): Likewise.
(grub_affs_iterate_dir): Likewise. Fix freeing corruption.
(grub_affs_read): Fix non-512B blocks.
(grub_affs_label): Likewise.
(grub_affs_mtime): Likewise.
(grub_affs_mount): Fix block detection routine.
Vladimir 'phcoder' Serbinenko [Mon, 7 May 2012 23:51:34 +0000 (01:51 +0200)]
Add filesystem mtime to AFFS.
* grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
(aftime2ctime): New function.
(grub_affs_dir): Use aftime2ctime.
(grub_affs_label): Fix return value.
(grub_affs_mtime): New function.
(grub_affs_fs): Add mtime.
Vladimir 'phcoder' Serbinenko [Mon, 7 May 2012 20:00:19 +0000 (22:00 +0200)]
* grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
UTF-8.
Vladimir 'phcoder' Serbinenko [Mon, 7 May 2012 19:57:51 +0000 (21:57 +0200)]
* grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
UTF-8.
Vladimir 'phcoder' Serbinenko [Mon, 7 May 2012 17:09:02 +0000 (19:09 +0200)]
* grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
Vladimir 'phcoder' Serbinenko [Mon, 7 May 2012 17:07:16 +0000 (19:07 +0200)]
* grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
flags.
(FLAGS_CASE_SENSITIVE): New enum value.
(cache_entry): New struct.
(grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
cache_size and cache.
(grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
Add log_blocksize and fshelp_flags.
(grub_sfs_read_extent): Handle non-512 blocks.
(grub_sfs_read_block): Add cаche and handle non-512 blocks.
(grub_sfs_read_file): Handle non-512 blocks.
(grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
fshelp_flags.
(grub_sfs_read_symlink): Handle non-512 blocks.
(grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
(grub_sfs_dir): Free cache.
(grub_sfs_close): Likewise.
Vladimir 'phcoder' Serbinenko [Sun, 6 May 2012 14:20:55 +0000 (16:20 +0200)]
* grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
filesystems.
Vladimir 'phcoder' Serbinenko [Sun, 6 May 2012 14:18:00 +0000 (16:18 +0200)]
* grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
Vladimir 'phcoder' Serbinenko [Sun, 6 May 2012 14:10:29 +0000 (16:10 +0200)]
* grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
Vladimir 'phcoder' Serbinenko [Sun, 6 May 2012 02:42:28 +0000 (04:42 +0200)]
* grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
(grub_sfs_read_extent): Likewise.
(grub_sfs_read_block): Likewise.
(grub_sfs_mount): Likewise.
(grub_sfs_iterate_dir): Likewise.
(grub_sfs_read_symlink): Use strncpy instead of strcpy.
(grub_sfs_read): Remove unnecessarry and wrong temporary variable.
Vladimir 'phcoder' Serbinenko [Fri, 4 May 2012 15:37:17 +0000 (17:37 +0200)]
Fix errors on compressed NTFS with 512B clusters.
* include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
types.
* grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
not 0.
* grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
Relax check for inline extents.
(ntfscomp): Return correct -1 on error and not 0.
Vladimir 'phcoder' Serbinenko [Fri, 4 May 2012 15:18:35 +0000 (17:18 +0200)]
* util/grub-install.in: Fix handling of prefix containing spaces.
Vladimir 'phcoder' Serbinenko [Fri, 4 May 2012 15:13:24 +0000 (17:13 +0200)]
* grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
(grub_squash_read_data): Fix offset byte-swapping.
Vladimir 'phcoder' Serbinenko [Fri, 4 May 2012 10:08:22 +0000 (12:08 +0200)]
* grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
per common usage and preffered in several parts of code.
(grub_memcmp): Likewise.
(grub_strncmp): Likewise.
* include/grub/misc.h (grub_strcasecmp): Likewise.
(grub_strncasecmp): Likewise.
* Makefile.util.def (cmp_test): New test.
(grub_script_strcmp): Likewise.
* tests/cmp_unit_test.c: New file.
* tests/grub_script_strcmp.in: Likewise.
* grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
Vladimir 'phcoder' Serbinenko [Fri, 4 May 2012 08:54:38 +0000 (10:54 +0200)]
* include/grub/pci.h: Move enums into no-asm part.
Vladimir 'phcoder' Serbinenko [Fri, 4 May 2012 08:52:26 +0000 (10:52 +0200)]
* grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
Samuel Thibault [Fri, 4 May 2012 00:26:39 +0000 (02:26 +0200)]
* util/getroot.c (find_hurd_root_device): Try to make error message
and comments to translators clearer.
Vladimir 'phcoder' Serbinenko [Thu, 3 May 2012 23:20:38 +0000 (01:20 +0200)]
* grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments
Vladimir 'phcoder' Serbinenko [Thu, 3 May 2012 23:06:21 +0000 (01:06 +0200)]
Revert last commit based on lack of consensus and possible unsmooth migration path
Vladimir 'phcoder' Serbinenko [Thu, 3 May 2012 22:41:57 +0000 (00:41 +0200)]
* util/grub.d/00_header.in: Make timeout apply to else
clause of hidden timout.
Reported by: Mads Kiilerich.
Vladimir 'phcoder' Serbinenko [Thu, 3 May 2012 22:36:23 +0000 (00:36 +0200)]
* grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
btrfs.
Vladimir 'phcoder' Serbinenko [Thu, 3 May 2012 22:30:15 +0000 (00:30 +0200)]
* docs/grub.cfg: Update.
Vladimir 'phcoder' Serbinenko [Thu, 3 May 2012 22:28:53 +0000 (00:28 +0200)]
* docs/grub.texi (PXE): Remove not present variables.
Vladimir 'phcoder' Serbinenko [Thu, 3 May 2012 22:26:53 +0000 (00:26 +0200)]
* grub-core/net/net.c (defserver_set_env): New function.
(defserver_get_env): Likewise.
(GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
Vladimir 'phcoder' Serbinenko [Thu, 3 May 2012 22:07:55 +0000 (00:07 +0200)]
* grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
entries.
Vladimir 'phcoder' Serbinenko [Thu, 3 May 2012 22:03:40 +0000 (00:03 +0200)]
Correct author of last commit
Vladimir 'phcoder' Serbinenko [Thu, 3 May 2012 21:43:59 +0000 (23:43 +0200)]
* grub-core/commands/menuentry.c: Add TRANSLATORS comments.
* grub-core/kern/emu/hostdisk.c: Likewise.
Samuel Thibault [Thu, 3 May 2012 21:41:46 +0000 (23:41 +0200)]
Handle hurd userspace partitions.
* util/getroot.c (find_hurd_root_device): New function.
(grub_guess_root_devices): Use find_hurd_root_device on Hurd.
Vladimir 'phcoder' Serbinenko [Thu, 3 May 2012 20:59:16 +0000 (22:59 +0200)]
* util/getroot.c (convert_system_partition_to_system_disk); Add etherd
names.
Reported by: Bastian Blank.
Vladimir 'phcoder' Serbinenko [Thu, 3 May 2012 20:16:45 +0000 (22:16 +0200)]
* grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
crossing page boundary.
Vladimir 'phcoder' Serbinenko [Thu, 3 May 2012 18:29:10 +0000 (20:29 +0200)]
Fix B-tree search in BFS, especially in presence of non-ASCII
characters.
* grub-core/fs/bfs.c (bfs_strcmp): New function.
(find_in_b_tree): Use standard bsearch + btree algorithm.
Vladimir 'phcoder' Serbinenko [Thu, 3 May 2012 18:20:28 +0000 (20:20 +0200)]
* util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
and so on.
Matthew Garrett [Thu, 3 May 2012 15:26:55 +0000 (17:26 +0200)]
Suspend broadcom cards in order to stop their DMA.
* grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
* grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
(pci): Don't build on x86 EFI.
* grub-core/bus/pci.c (grub_pci_find_capability): New function.
* grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
New function.
(grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
stop_broadcom if running on EFI.
* include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
(GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
(GRUB_PCI_VENDOR_BROADCOM): Likewise.
(grub_pci_find_capability): New proto.
Also-By: Vladimir Serbinenko <phcoder@gmail.com>